Re: pgsql-server/ oc/src/sgml/runtime.sgml rc/back ... - Mailing list pgsql-committers

From Bruce Momjian
Subject Re: pgsql-server/ oc/src/sgml/runtime.sgml rc/back ...
Date
Msg-id 200211210105.gAL154127352@candle.pha.pa.us
Whole thread Raw
In response to Re: pgsql-server/ oc/src/sgml/runtime.sgml rc/back ...  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-committers
Christopher Kings-Lynne wrote:
> > Log message:
> >     Finish implementation of hashed aggregation.  Add enable_hashagg GUC
> >     parameter to allow it to be forced off for comparison purposes.
> >     Add ORDER BY clauses to a bunch of regression test queries that will
> >     otherwise produce randomly-ordered output in the new regime.
>
> Out of interest (since I was away while this was proposed I assume),
> what's the idea with hashed aggergation?  I assume each group is now in a
> hash bucket?  How did it work before?

It sequential scanned the group of possible matches.  How it hashes the
value and looks for matches that way --- much faster and the way most
db's do it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql-server/doc TODO
Next
From: Tom Lane
Date:
Subject: Re: pgsql-server/ oc/src/sgml/runtime.sgml rc/back ...