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:45:18 |
Message-ID: | 200203110445.g2B4jIJ24135@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > How about?
>
> > EXPLAIN select * from pg_class;
> > EXPLAIN VERBOSE select * from pg_class;
> > EXPLAIN VERBOSE 1 select * from pg_class;
> > EXPLAIN VERBOSE 5 select * from pg_class;
>
> Seems kinda ugly. But maybe same idea with repeated VERBOSE,
> a la some Unix commands ("more -v's get you more detail"):
>
> EXPLAIN [ANALYZE] [VERBOSE] [ VERBOSE ... ] statement;
>
> I'd sugggest
>
> EXPLAIN select * from pg_class;
>
> Default output: same as now
>
> EXPLAIN VERBOSE select * from pg_class;
>
> Add prettyprinted qual clauses
>
> EXPLAIN VERBOSE VERBOSE select * from pg_class;
>
> Add full plan-tree dump
>
> and there's room for expansion if we need it.
I was never a fan of the -v -v more-verbose options, and I don't see any
case where we use such behavior in our code. We do use detail levels
for debug, and that is fairly common.
How about:
> > EXPLAIN select * from pg_class;
> > EXPLAIN VERBOSE select * from pg_class;
> > EXPLAIN LEVEL 1 select * from pg_class;
> > EXPLAIN LEVEL 5 select * from pg_class;
Here I use LEVEL to tell how much detail you want.
--
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 | Peter Eisentraut | 2002-03-11 04:47:15 | Re: Rationalizing EXPLAIN VERBOSE output |
Previous Message | Tom Lane | 2002-03-11 04:43:19 | Re: Rationalizing EXPLAIN VERBOSE output |