disable NOTICES in psql output

前端 未结 5 727
醉话见心
醉话见心 2020-12-23 13:26

How do I stop psql (PostgreSQL client) from outputting notices? e.g.

psql:schema/auth.sql:20: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 13:52

    SET client_min_messages TO WARNING;
    

    That could be set only for the session or made persistent with ALTER ROLE or ALTER DATABASE.

    Or you could put that in your ".psqlrc".

提交回复
热议问题