Add pg_file_settings view and function
authorStephen Frost <sfrost@snowman.net>
Fri, 8 May 2015 23:09:26 +0000 (19:09 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 8 May 2015 23:09:26 +0000 (19:09 -0400)
commita97e0c3354ace5d74c6873cd5e98444757590be8
tree769046f2783f3725a47466b893e9fd1d07bd9466
parentbab64ef9e8bc56fa5db9bd41cefb54c3d8051dbe
Add pg_file_settings view and function

The function and view added here provide a way to look at all settings
in postgresql.conf, any #include'd files, and postgresql.auto.conf
(which is what backs the ALTER SYSTEM command).

The information returned includes the configuration file name, line
number in that file, sequence number indicating when the parameter is
loaded (useful to see if it is later masked by another definition of the
same parameter), parameter name, and what it is set to at that point.
This information is updated on reload of the server.

This is unfiltered, privileged, information and therefore access is
restricted to superusers through the GRANT system.

Author: Sawada Masahiko, various improvements by me.
Reviewers: David Steele
doc/src/sgml/catalogs.sgml
src/backend/catalog/system_views.sql
src/backend/utils/misc/guc-file.l
src/backend/utils/misc/guc.c
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/test/regress/expected/rules.out