Re: group by points

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Albe Laurenz <all(at)adv(dot)magwien(dot)gv(dot)at>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: group by points
Date: 2006-05-22 20:10:31
Message-ID: 20060522201031.GA20297@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 22, 2006 at 10:23:28 +0200,
Albe Laurenz <all(at)adv(dot)magwien(dot)gv(dot)at> wrote:
>
> In order to (efficiently) process a GROUP BY clause, you need a
> total ordering on the data type that you group by, i.e. an ordering
> such that for any two data x and y you have either x < y or x > x
> or x = y.

An equality operator is good enough if the number of unique groups isn't too
large, so that a hash aggregate plan works efficiently.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-05-22 20:11:38 Re: error-free disabling of individual child partition
Previous Message Jim C. Nasby 2006-05-22 20:01:31 Re: pgbench create index anomoly