Re: Query runs forever after upgrading to 9.3

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

On Mon, Sep 23, 2013 at 9:12 AM, Andrus <kobruleht2(at)hot(dot)ee> wrote:

>
> work_mem = 400MB
>
> Hope that this is OK.
>

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;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2013-09-23 16:50:03 Re: Query runs forever after upgrading to 9.3
Previous Message Andrus 2013-09-23 16:12:52 Re: Query runs forever after upgrading to 9.3