psql : how to make it more silent....

Started by Patrick Ficheover 21 years ago5 messagesgeneral
Jump to latest
#1Patrick Fiche
patrick.fiche@aqsacom.com

Hi,

When I execute a function, I would like psql to show me only RAISE NOTICE
messages but not all function calls....
Indeed, I currently get some messages that I don't care about :

* PL/pgSQL function "adm_user" line 321......
* CONTEXT: SQL query "SELECT....."

Is there a way to get rid of these messages....

Thanks

---------------------------------------------------------------------------
----------------
Patrick Fiche
email : patrick.fiche@aqsacom.com
t�l : 01 69 29 36 18
----------------------------------------------------------------------------
---------------

Protected by Polesoft Lockspam
http://www.polesoft.com/refer.html

#2Gaetano Mendola
mendola@bigfoot.com
In reply to: Patrick Fiche (#1)
Re: psql : how to make it more silent....

Patrick Fiche wrote:

Hi,

When I execute a function, I would like psql to show me only RAISE
NOTICE messages but not all function calls....
Indeed, I currently get some messages that I don't care about :

* PL/pgSQL function "adm_user" line 321......
* CONTEXT: SQL query "SELECT....."

Is there a way to get rid of these messages....

modify your log_error_verbosity to "terse"

Regards
Gaetano Mendola

#3David Rysdam
drysdam@ll.mit.edu
In reply to: Gaetano Mendola (#2)
Re: psql : how to make it more silent....

Gaetano Mendola wrote:

Patrick Fiche wrote:

Hi,

When I execute a function, I would like psql to show me only RAISE
NOTICE messages but not all function calls....
Indeed, I currently get some messages that I don't care about :

* PL/pgSQL function "adm_user" line 321......
* CONTEXT: SQL query "SELECT....."

Is there a way to get rid of these messages....

modify your log_error_verbosity to "terse"

I can't find anything else on that

http://search.postgresql.org/www.search?ul=http%3A%2F%2Fwww.postgresql.org%2Fdocs%2F7.4%2Fstatic%2F%25&q=log_error_verbosity

and I would like to have psql (optionally?) not even send me NOTICE
messages.

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Rysdam (#3)
Re: psql : how to make it more silent....

David Rysdam <drysdam@ll.mit.edu> writes:

... I would like to have psql (optionally?) not even send me NOTICE
messages.

Have you looked at client_min_messages?

regards, tom lane

#5David Rysdam
drysdam@ll.mit.edu
In reply to: Tom Lane (#4)
Re: psql : how to make it more silent....

Tom Lane wrote:

David Rysdam <drysdam@ll.mit.edu> writes:

... I would like to have psql (optionally?) not even send me NOTICE
messages.

Have you looked at client_min_messages?

regards, tom lane

I had not, because I'd never heard of it. :) Looks like exactly what I
want and what I was suspecting existed, thanks.