Re: sort_mem param of postgresql.conf

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: sort_mem param of postgresql.conf
Дата
Msg-id 20081113191402.GV2459@frubble.xen.chris-lamb.co.uk
обсуждение исходный текст
Ответ на Re: sort_mem param of postgresql.conf  ("Grzegorz Jaśkiewicz" <gryzman@gmail.com>)
Ответы Re: sort_mem param of postgresql.conf  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Thu, Nov 13, 2008 at 02:59:34PM +0000, Grzegorz Jaaakiewicz wrote:
> On Wed, Nov 12, 2008 at 11:08 PM, Greg Smith <gsmith@gregsmith.com> wrote:
> > Generally, if it's only a report or two that
> > need a lot more working memory for sorts, you can do this at the beginning
> > of them instead:
> >
> > set work_mem='512MB';
>
> so how do I change it back to default (without knowing what the previous val
> was). I suppose having it in a transaction won't do :P

If by "default" you mean whatever was in the config file, you can do:

  set work_mem = default;

A transaction followed by ROLLBACK appears to work as well.


  Sam

В списке pgsql-general по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: still gin index creation takes forever
Следующее
От: pgsql-general@ian.org
Дата:
Сообщение: Table bloat in 8.3