Re: Plan targetlists in EXPLAIN output - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Plan targetlists in EXPLAIN output
Date
Msg-id 87ve2gbbgf.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Plan targetlists in EXPLAIN output  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Plan targetlists in EXPLAIN output  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> I'm not convinced.  The width is often useful to understand why the
> planner did something (eg, chose a hash plan or not).  The exact
> contents of the targetlist are usually not nearly as interesting.

I've never seen a single post on any of the lists where anyone went through
that exercise though.

>          ->  Seq Scan on tenk1  (cost=0.00..458.00 rows=10000 width=4)
>                Output: unique1, unique2, two, four, ten, twenty, hundred, thousand, twothousand, fivethous, tenthous,
odd,even, stringu1, stringu2, string4
 

I wonder if I even understand what width means. Or does the planner think most
of these columns are mostly null?

Or is it estimating the width based on the belief that only the thousand
column is actually going to be emitted?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Get trained by Bruce Momjian - ask me about
EnterpriseDB'sPostgreSQL training!
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Lessons from commit fest
Next
From: Tom Lane
Date:
Subject: Re: Plan targetlists in EXPLAIN output