pgsql: Teach SHOW ALL to honor pg_read_all_settings membership

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Teach SHOW ALL to honor pg_read_all_settings membership
Date: 2018-06-08 20:32:41
Message-ID: E1fRO3t-0002CM-Ni@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Teach SHOW ALL to honor pg_read_all_settings membership

Also, fix the pg_settings view to display source filename and line
number when invoked by a pg_read_all_settings member. This addition by
me (Álvaro).

Also, fix wording of the comment in GetConfigOption regarding the
restriction it implements, renaming the parameter for extra clarity.
Noted by Michaël.

These were all oversight in commit 25fff40798fc; backpatch to pg10,
where that commit first appeared.

Author: Laurenz Albe
Reviewed-by: Michaël Paquier, Álvaro Herrera
Discussion: https://postgr.es/m/1519917758.6586.8.camel@cybertec.at

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0c8910a0cab7c1e439bf5f5850122c36359e6799

Modified Files
--------------
src/backend/utils/misc/guc.c | 19 ++++++++++---------
src/include/utils/guc.h | 2 +-
2 files changed, 11 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2018-06-09 17:04:56 pgsql: Fix typo in JIT README.
Previous Message Peter Eisentraut 2018-06-08 16:08:46 pgsql: Fix typo