Re: SELECT DISTINCT triggers sorting operation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gaëtan Allart <gallart(at)free(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT DISTINCT triggers sorting operation
Date: 2010-02-07 06:38:56
Message-ID: 18678.1265524736@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?Q?Ga=EBtan_Allart?= <gallart(at)free(dot)fr> writes:
> I'm experiencing an interesting issue with PostgreSQL 8.4.2-r2.
> I was running a pretty big database on another server (8.3) pretty fine.
> When I moved it to this new server, behaviour changed.

Did you ANALYZE the database after loading it? Are you sure you
have all the parameters set similarly to what you used in the 8.3
installation?

(The described behavior sounds suspiciously like work_mem is not
large enough to allow a hashagg to be chosen.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gaëtan Allart 2010-02-07 10:17:33 Re: SELECT DISTINCT triggers sorting operation
Previous Message Tom Lane 2010-02-07 06:35:36 Re: Multiple buffer cache?