Re: query memory consumption

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: Alan McKay <alan(dot)mckay(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: query memory consumption
Date: 2009-09-22 12:51:03
Message-ID: 2f4958ff0909220551l5fe63426u259ae186058e1003@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Sep 22, 2009 at 1:46 PM, Alan McKay <alan(dot)mckay(at)gmail(dot)com> wrote:
>> Best practice to avoid that, is to bump the work_mem temporarily
>> before the query, and than lower it again, lowers the chance of memory
>> exhaustion.
>
> Interesting - I can do that dynamically?

you can do set work_mem=128M; select 1; set work_mem=64M;

etc, in one query.

--
GJ

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Pavel Stehule 2009-09-22 13:05:43 Re: session servers in ram
Previous Message Greg Spiegelberg 2009-09-22 12:48:57 Re: session servers in ram