Postgresql - is there a way to disable the display of INSERT statements when reading in from a file? [closed]

只谈情不闲聊 提交于 2019-12-01 18:12:38

The psql manual says:

-q

--quiet

Specifies that psql should do its work quietly. By default, it prints welcome messages and various informational output. If this option is used, none of this happens. This is useful with the -c option. Within psql you can also set the QUIET variable to achieve the same effect.

Per @harmic's suggestion you may also want to set client_min_messages:

SET client_min_messages = 'ERROR';
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!