Re: query memory consumption - Mailing list pgsql-performance

From Grzegorz Jaśkiewicz
Subject Re: query memory consumption
Date
Msg-id 2f4958ff0909220551l5fe63426u259ae186058e1003@mail.gmail.com
Whole thread Raw
In response to Re: query memory consumption  (Alan McKay <alan.mckay@gmail.com>)
Responses Re: query memory consumption  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-performance
On Tue, Sep 22, 2009 at 1:46 PM, Alan McKay <alan.mckay@gmail.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

pgsql-performance by date:

Previous
From: Greg Spiegelberg
Date:
Subject: Re: session servers in ram
Next
From: Pavel Stehule
Date:
Subject: Re: session servers in ram