The "silent" option -q is defined as: "run silently (no messages, only query output )".
The result of setval() is the result of the request, not the message, so a quiet option does not suppress this.
If you do not want to see the results of the query, you can redirect your output to /dev/null using the -o switch:
psql -o / dev / null -q -U postgres -d myDB -f / Users / hoaphan / dev / postgres_dump -p 5432
(I can't test it on Linux right now, but the equivalent thing works on Windows)
source share