Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] psql: stdout or stderr?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] psql: stdout or stderr?
Date: 1998-12-31 16:20:13
Message-ID: 7018.915121213@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
>> Is that really what you want?  I would have thought errors would be sent
>> to stderr and that every thing else would go to stdout.

> Yes, this is new.  As I remember, some stuff is sent to stdout, and some
> to stderr, and there was some reason for that, though I can't remember
> what it was.  

I've always thought that psql is pretty inconsistent, arbitrary, and
unreasonable about what it chooses to write to stdout vs stderr.

However, if we rejigger what goes where, we will surely break a lot of
users' shell scripts, since those already expect particular output to go
to one or the other.  (We'd also break all the regression tests, but
at least those are within our power to fix.)

On the whole I'd vote against changing it --- a small improvement in
consistency is not worth the pain it will cause.

			regards, tom lane

Responses

pgsql-hackers by date

Next:From: Thomas G. LockhartDate: 1998-12-31 16:58:23
Subject: Date/time fixes for HAVE_TM_ZONE platforms
Previous:From: Andrey V KhavryutchenkoDate: 1998-12-31 10:39:15
Subject: Re: [HACKERS] problems recovering 6.1 db

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group