Re: set parameter for all existing session

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: alex lock <alock303(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: set parameter for all existing session
Date: 2019-06-12 08:24:46
Message-ID: CAFj8pRBgTNe2ZQPqaoHh9dmXfv0OvdOZadbKDnXLL3Bp2C4bJQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

st 12. 6. 2019 v 9:58 odesílatel alex lock <alock303(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jamison, Kirk 2019-06-12 08:29:44 RE: [PATCH] Speedup truncates of relation forks
Previous Message Fabien COELHO 2019-06-12 08:24:31 Re: fix psql \conninfo & \connect when using hostaddr