Re: New array functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: New array functions
Date
Msg-id 1090.1062111859@sss.pgh.pa.us
Whole thread Raw
In response to Re: New array functions  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Incidentally, "HashAggregate"?! Based on the earlier discussion on this I
> would have expected that line to read "Materialize"

It's using a grouped aggregation node to implement a UNIQUE filter, so
that it can replace the "WHERE foo IN (subselect)" by a straight join.
Of course in this case the uniqueness filter is a waste of time, but
in general the planner can't be expected to know that.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Obscure: correctness of lock manager???
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Bumping block size to 16K on FreeBSD...