On Fri, Jan 28, 2005 at 02:35:21 -0800,
Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> wrote:
> Should the expressions
> select distinct x from t
> select x from t group by x
> have the same effect?
> It seems the optimizer sometimes chooses different plans for those
> expressions. Could the select distinct have used the slightly
> faster hash aggregate?
I don't think select distinct can use hash aggregate plans.
In response to
pgsql-novice by date
|Next:||From: James DeMond||Date: 2005-01-31 04:12:32|
|Subject: Arrays of user-defined data types in other user-defined data types|
|Previous:||From: Tom Lane||Date: 2005-01-29 22:16:48|
|Subject: Re: Postgres database access problem |