Teach SHOW ALL to honor pg_read_all_settings membership

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a25c207b2fb8be8dc1bf91b55e8b5b3d809934d9
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-06-08T20:27:56Z
Releases: 10.5
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

Files

PathChange+/−
src/backend/utils/misc/guc.c modified +10 −9
src/include/utils/guc.h modified +1 −1

Discussion