Re: Reference to parent query from ANY sublink

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Reference to parent query from ANY sublink
Дата
Msg-id 1386798489.91295.YahooMailNeo@web162903.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: Reference to parent query from ANY sublink  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reference to parent query from ANY sublink
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> FWIW, that plan isn't obviously wrong; if it is broken, most
> likely the reason is that the HashAggregate is incorrectly
> unique-ifying the lower table.  (Unfortunately, EXPLAIN doesn't
> show enough about the HashAgg to know what it's doing exactly.)

Yeah, I found myself wishing for an EXPLAIN option that would show
that.

> The cost of the HashAggregate is estimated higher, though, which
> suggests that maybe it's distinct'ing on two columns where the
> bogus plan only does one.

FWIW, I noticed that the actual row counts suggested that, too.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Time-Delayed Standbys
Следующее
От: AK
Дата:
Сообщение: Let us fix the documentation