Re: Plan targetlists in EXPLAIN output

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Plan targetlists in EXPLAIN output
Дата
Msg-id 87ve2gbbgf.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Plan targetlists in EXPLAIN output  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Plan targetlists in EXPLAIN output  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Lessons from commit fest
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Plan targetlists in EXPLAIN output