Re: Query palns and tug-of-war with enable_sort

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: glynastill(at)yahoo(dot)co(dot)uk
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query palns and tug-of-war with enable_sort
Date: 2009-02-18 18:37:08
Message-ID: 10105.1234982228@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> writes:
> I've slapped together a quick test case that gives the same results
> with explain even when I have no data in the tables and haven't
> analyzed them.

No, those aren't the same plans. In particular what's bothering me is
the lack of any sort in the first plan you showed (the one with
HashAggregate at the top). That shouldn't be possible because of the
ORDER BY --- a hash aggregate will deliver unsorted output so there
should be a sort step above it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-02-18 18:50:14 Re: leak in libpq, getpwuid
Previous Message Joey Morris 2009-02-18 18:29:53 Re: connecting using libpq breaks printf