From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Set pg_setting.pending_restart when pertinent config lines are r |
Date: | 2021-07-27 19:54:41 |
Message-ID: | E1m8TA1-0005rE-46@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Set pg_setting.pending_restart when pertinent config lines are removed
This changes the behavior of examining the pg_file_settings view after
changing a config option that requires restart. The user needs to know
that any change of such options does not take effect until a restart,
and this worked correctly if the line is edited without removing it.
However, for the case where the line is removed altogether, the flag
doesn't get set, because a flag was only set in set_config_option, but
that's not called for lines removed. Repair.
(Ref.: commits 62d16c7fc561 and a486e35706ea)
Author: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/202107262302.xsfdfc5sb7sh@alvherre.pgsql
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b8f91d7f926368115c27b978c939174c96df1a5f
Modified Files
--------------
src/backend/utils/misc/guc-file.l | 2 ++
1 file changed, 2 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2021-07-27 23:54:16 | Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows |
Previous Message | Alvaro Herrera | 2021-07-27 19:52:40 | pgsql: Set pg_setting.pending_restart when pertinent config lines are r |