Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到以下警告消息,我对此警告没有意见。“postgresql 重复键违反唯一约束”
但我想停止收到该警告信息?我怎么做 ?
运行 SQL:
SET client_min_messages = 'error';
postgresql.conf或通过ALTER USER ... SETor设置它ALTER DATABASE ... SET,具体取决于您希望设置具有的范围。
postgresql.conf
ALTER USER ... SET
ALTER DATABASE ... SET
log_min_messages如果您想在服务器日志中禁止它们,您可以执行相同的操作。
log_min_messages