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

From Daniel Gustafsson
Subject Re: [PATCH] Add ALTER SYSTEM RELOAD
Date
Msg-id 573EAB2C-E0FB-48AD-9341-4C14408CF45B@yesql.se
Whole thread
In response to Re: [PATCH] Add ALTER SYSTEM RELOAD  (Chao Li <li.evan.chao@gmail.com>)
List pgsql-hackers
> On 24 Sep 2026, at 13:38, Chao Li <li.evan.chao@gmail.com> wrote:

> Yeah, that could be a solution. But the current patch only allows super user:

> + if (!superuser())
> + ereport(ERROR,
> + (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
> + errmsg("permission denied to perform ALTER SYSTEM RELOAD")));

I don't have a strong opinion either way, but if this check remains the error
message we commonly use is "must be superuser to ..."

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: [PATCH] Assertion in pg_get_shmem_pagesize() in single-user mode
Next
From: Trakshan Mishra
Date:
Subject: Request to expedite commitfest account cool-off