Re: SELECT DISTINCT triggers sorting operation

From: Gaëtan Allart <gallart(at)free(dot)fr>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT DISTINCT triggers sorting operation
Date: 2010-02-07 10:17:33
Message-ID: 55419559-6B38-4167-9ECF-AFADF37A2FEB@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You were absolutely right Tom.
Rising work_mem did the trick!

Many thanks :-)

What's the best value for work_mem ?

Gaëtan

Le 7 févr. 2010 à 07:38, Tom Lane a écrit :

> =?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

Browse pgsql-general by date

  From Date Subject
Next Message kz win 2010-02-07 14:36:39 weird bug in rebuilding RPMs
Previous Message Tom Lane 2010-02-07 06:38:56 Re: SELECT DISTINCT triggers sorting operation