Re: Reference to parent query from ANY sublink - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Reference to parent query from ANY sublink
Date
Msg-id 1386798489.91295.YahooMailNeo@web162903.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: Reference to parent query from ANY sublink  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Reference to parent query from ANY sublink
List 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 by date:

Previous
From: Andres Freund
Date:
Subject: Re: Time-Delayed Standbys
Next
From: AK
Date:
Subject: Let us fix the documentation