Re: wip: functions median and percentile

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Hitoshi Harada <umi.tanuki@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Greg Stark <gsstark@mit.edu>, Pavel Stehule <pavel.stehule@gmail.com>, David Fetter <david@fetter.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-10-11T17:48:12Z
Lists: pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> On 11 October 2010 18:37, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Sure it would: an estimate of 30K would keep the planner from using
>> hash aggregation.

> Not if work_mem was 10MB.

And?  If the memory requirement actually fits, you're in good shape.

			regards, tom lane