Re: [PATCH] Add ALTER SYSTEM RELOAD - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: [PATCH] Add ALTER SYSTEM RELOAD
Date
Msg-id 1681374f-3265-4d68-a595-a30af5052244@postgresfriends.org
Whole thread
In response to [PATCH] Add ALTER SYSTEM RELOAD  (Yuhang Qiu <iamqyh@gmail.com>)
List pgsql-hackers
On 23/09/2026 11:44, Yuhang Qiu wrote:
> Hi hackers,
>
> For configuration parameters that can be reloaded, administrators often need
> to perform two steps in succession:
> ```sql
> ALTER SYSTEM SET work_mem = '64MB';
> SELECT pg_reload_conf();
> ```
>
> I propose adding `ALTER SYSTEM RELOAD`, so the sequence can be written as:
> ```sql
> ALTER SYSTEM SET work_mem = '64MB';
> ALTER SYSTEM RELOAD;
> ```


I think this is a good idea.


> I think log rotation (`ALTER SYSTEM ROTATE LOG`) and standby promotion
> (`ALTER SYSTEM PROMOTE`) are also promising directions for this command family.
> This patch proposes only `RELOAD`. I would appreciate feedback on whether
> `ALTER SYSTEM` is the right place for this operation.


I like those ideas as well.

-- 

Vik Fearing




pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: Add counted_by attribute
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: aio: worker: Free SMGR objects when idle