Re: SELECT DISTINCT too slow - Mailing list pgsql-sql

From Miroslav Šulc
Subject Re: SELECT DISTINCT too slow
Date
Msg-id 447F0A44.3080500@startnet.cz
Whole thread Raw
In response to Re: SELECT DISTINCT too slow  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SELECT DISTINCT too slow
List pgsql-sql
The GROUP BY is really fast :-)

Thank you.

Miroslav Šulc


Tom Lane napsal(a):
> Try
>     SELECT Key FROM MRTPContactValue GROUP BY Key
>
> The "select distinct" code is a bit old and crufty, GROUP BY is usually
> smarter.
>
>             regards, tom lane
>

Attachment

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: SELECT DISTINCT too slow
Next
From: Greg Stark
Date:
Subject: Re: Table design question