Re: Rationalizing EXPLAIN VERBOSE output - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Rationalizing EXPLAIN VERBOSE output
Date
Msg-id 200203110233.g2B2Xbh12367@candle.pha.pa.us
Whole thread Raw
In response to Re: Rationalizing EXPLAIN VERBOSE output  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Rationalizing EXPLAIN VERBOSE output  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Tom Lane writes:
> >> ... How hard would it be to get psql to
> >> send notice output into a \g file?
> 
> > \g (and \o) send only the query results to a file.  The idea is that you
> > want to save the results, but if there's a warning or error, you want to
> > see it.  We could add alternative commands (\G and \O?) that save the
> > notices and errors as well.  Not sure if this is useful beyond this
> > application.  In non-interactive situations you'd usually use shell
> > redirections to save all output.
> 
> The other possibility is to make EXPLAIN output look like a SELECT
> result.  Not sure how hard this would be to do, but in the long run
> I suppose that would be the direction to move in.

Seems EXPLAIN as SELECT would break our elog() control of output to the
server logs.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Rationalizing EXPLAIN VERBOSE output
Next
From: Tom Lane
Date:
Subject: Re: Rationalizing EXPLAIN VERBOSE output