diff options
| author | Stephen Frost | 2015-05-08 23:09:26 +0000 |
|---|---|---|
| committer | Stephen Frost | 2015-05-08 23:09:26 +0000 |
| commit | a97e0c3354ace5d74c6873cd5e98444757590be8 (patch) | |
| tree | 769046f2783f3725a47466b893e9fd1d07bd9466 /src/test | |
| parent | bab64ef9e8bc56fa5db9bd41cefb54c3d8051dbe (diff) | |
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
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/rules.out | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/regress/expected/rules.out b/src/test/regress/expected/rules.out index 2df24c0de16..a379a7279c5 100644 --- a/src/test/regress/expected/rules.out +++ b/src/test/regress/expected/rules.out @@ -1312,6 +1312,12 @@ pg_cursors| SELECT c.name, c.is_scrollable, c.creation_time FROM pg_cursor() c(name, statement, is_holdable, is_binary, is_scrollable, creation_time); +pg_file_settings| SELECT a.sourcefile, + a.sourceline, + a.seqno, + a.name, + a.setting + FROM pg_show_all_file_settings() a(sourcefile, sourceline, seqno, name, setting); pg_group| SELECT pg_authid.rolname AS groname, pg_authid.oid AS grosysid, ARRAY( SELECT pg_auth_members.member |
