Re: Query runs forever after upgrading to 9.3

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "bricklen" <bricklen(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query runs forever after upgrading to 9.3
Date: 2013-09-23 16:50:03
Message-ID: 0C05A378D1C34AEB9E22766442252483@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
>For cluster-wide setting you will probably want to drop that significantly -- start lower, as in somewhere around 10MB >and work up from there as necessary. For the queries you are finding slow (the reason for these emails) you can set >work_mem specifically for the session.

>Eg.

>set work_mem to '400MB';

><run your query>

>reset work_mem;

I changed it to 10MB.
The problamatic commands runs now less than 10 seconds.

http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

wrote that max reasonable value in Windows for shared_buffers is 512MB

Is my setting shared_buffers= 2400MB reasonable in Windows ?

Andrus.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message bricklen 2013-09-23 17:21:59 Re: Query runs forever after upgrading to 9.3
Previous Message bricklen 2013-09-23 16:16:29 Re: Query runs forever after upgrading to 9.3