Re: machine-readable explain output v4

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: machine-readable explain output v4
Дата
Msg-id 24831.1249252545@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: machine-readable explain output v4  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Aug 2, 2009 at 12:06 PM, Andres Freund<andres@anarazel.de> wrote:
>> - Currently a value scan looks like �Values Scan on "*VALUES*"� What about
>> adding its alias at least in verbose mode? This currently is inconsistent with
>> other scans.

> I don't know why this doesn't work, but I think it's unrelated to this patch.

If you mean something like

regression=# explain select * from (values(1)) ss;                        QUERY PLAN                          
-------------------------------------------------------------Values Scan on "*VALUES*"  (cost=0.00..0.01 rows=1
width=4)
(1 row)

I think the reason is that the alias applies to a SubqueryScan node that
later gets optimized away.  The VALUES per se doesn't have an alias.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Brendan Jurd
Дата:
Сообщение: Re: WIP: to_char, support for EEEE format
Следующее
От: Andres Freund
Дата:
Сообщение: Re: machine-readable explain output v4