Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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.


In response to


pgsql-performance by date

Next:From: Pavel StehuleDate: 2009-09-22 13:05:43
Subject: Re: session servers in ram
Previous:From: Greg SpiegelbergDate: 2009-09-22 12:48:57
Subject: Re: session servers in ram

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group