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

I populate the postgresql database from a file.

I get a lot:

INSERT 0 1

statements.

Is there a way to not display these commands at all? They loop through the previous output on my shell right now and don’t provide much useful information (what does INSERT 0 1 mean? Is that what you say "yo dude, the insert command was successful"?).

It seems I am getting one line INSERT 0 1for each statement INSERTin this file .sqlthat I read, and this is a massive file.

+4
source share
1 answer

The manual psqlsays:

-q

--quiet

, psql . . , . -c. psql QUIET .

@harmic client_min_messages:

SET client_min_messages = 'ERROR';
+6

Source: https://habr.com/ru/post/1526928/


All Articles