Re: set parameter for all existing session

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: set parameter for all existing session
Дата
Msg-id CAFj8pRBgTNe2ZQPqaoHh9dmXfv0OvdOZadbKDnXLL3Bp2C4bJQ@mail.gmail.com
обсуждение исходный текст
Ответ на set parameter for all existing session  (alex lock <alock303@gmail.com>)
Ответы Re: set parameter for all existing session  (alex lock <alock303@gmail.com>)
Список pgsql-hackers
Hi

st 12. 6. 2019 v 9:58 odesílatel alex lock <alock303@gmail.com> napsal:
I check the “alter database, alter role " and "set " command, but none of them can set the parameters to all the existing sessions.   do we have a way to do that?  looks the "assign_hook" can be used to customize this,  is it a right way to do that?


Maybe you miss to call pg_reload_conf();

example:

alter system set work_mem to '10MB';
select pg_reload_conf();

in other session you can:

show work_mem;

Regards

Pavel

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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: fix psql \conninfo & \connect when using hostaddr
Следующее
От: "Jamison, Kirk"
Дата:
Сообщение: RE: [PATCH] Speedup truncates of relation forks