| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Rationalizing EXPLAIN VERBOSE output |
| Date: | 2002-03-11 04:48:51 |
| Message-ID: | 200203110448.g2B4mqU24588@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > ... I am concerned that making explain like
> > SELECT means it is on the one piece of debug info you can't get into the
> > server logs. Query dump can already get into the query logs, but not
> > EXPLAIN non-verbose.
>
> A week ago you were willing to set things up so that INFO output could
> not get into the server logs period. Why so concerned now? EXPLAIN
> output does not seem like suitable data for logs to me, any more than
> the output of SELECT queries does. It's only a historical artifact
> that we are accustomed to thinking of it as being loggable.
>
> > In fact, as Peter explains it, NOTICE \g goes to the terminal because it
> > is assumed to be an error. Maybe we need to make psql smarter and only
> > send ERROR/WARNING to terminal, and INFO/NOTICE to the log file.
>
> While I suggested that to start with, it seems like a bad idea on
> further thought. Mixing INFO/NOTICE with query output would be just
> like piping stdout and stderr to the same place. There's usually
> good reason to keep them separate.
OK, sounds interesting.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bradley McLean | 2002-03-11 04:48:58 | Re: Rationalizing EXPLAIN VERBOSE output |
| Previous Message | Peter Eisentraut | 2002-03-11 04:47:15 | Re: Rationalizing EXPLAIN VERBOSE output |