Re: changing work_mem

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: dbhandary(at)iii(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: changing work_mem
Date: 2011-06-13 19:50:50
Message-ID: BANLkTi=4YMAaFNdRPFmbwzkVWyX9T+G03w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Jun 13, 2011 at 10:29 AM, Dinesh Bhandary <dbhandary(at)iii(dot)com> wrote:
> Hi All -
>
> Is there a way to change work_mem for a session in postgres without
> restarting a database? Please let me know.

In addition the standard set work_mem='512MB'; listed above, you can
make such changes sticky for a user or a database:

alter user bubba set work_mem='1000MB';
alter database reports set work_mem='256MB';

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mark Johnson 2011-06-14 01:43:37 Re: tsvector limitations
Previous Message Tim 2011-06-13 19:19:35 tsvector limitations