disable NOTICES in psql output

前端 未结 5 725
醉话见心
醉话见心 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:51

    It can be set in the global postgresql.conf file as well with modifiying the client_min_messages parameter.

    Example:

    client_min_messages = warning
    

提交回复
热议问题