Re: [HACKERS] How to get 'psql -q' runs really quiet ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] How to get 'psql -q' runs really quiet ?
Date: 1999-08-14 14:50:49
Message-ID: 7458.934642249@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> I need to run psql really quiet - no messages, just returning RC.
> psql -q doesn't works as supposed from man page -
> I'm still getting messages like:
> NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index .....

The way libpq is set up, NOTICE messages *will* appear on stderr
no matter what, unless the client app overrides the default notice
message processor (which is this hugely complicated routine that
calls fprintf(stderr, ...) ;-)).

Perhaps psql ought to plug in a no-op notice message processor
if -q is specified.

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-08-14 15:10:22 Re: [SQL] Anyone recognise this error from PL/pgSQL?
Previous Message Tom Lane 1999-08-14 14:46:31 Re: [BUGS] UNIQUE constraint no longer works under 6.5.1