pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add pg_file_settings view and function
Date: Fri, 08 May 2015 23:09:42 +0000
Message-ID: <E1YqrOo-0005ag-Rl@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a97e0c3354ace5d74c6873cd5e98444757590be8

Modified Files
--------------
doc/src/sgml/catalogs.sgml           |   78 ++++++++++++++++++++++
src/backend/catalog/system_views.sql |    6 ++
src/backend/utils/misc/guc-file.l    |   50 ++++++++++++++
src/backend/utils/misc/guc.c         |  120 ++++++++++++++++++++++++++++++++++
src/include/catalog/pg_proc.h        |    2 +
src/include/utils/builtins.h         |    1 +
src/test/regress/expected/rules.out  |    6 ++
7 files changed, 263 insertions(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (3+ messages)  latest in thread

Message-ID: <E1YqrOo-0005ag-Rl@gemulon.postgresql.org>
Permalink:  ../E1YqrOo-0005ag-Rl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YqrOo-0005ag-Rl@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: sfrost@snowman.net
  Subject: Re: pgsql: Add pg_file_settings view and function
  In-Reply-To: <E1YqrOo-0005ag-Rl@gemulon.postgresql.org>
  References: <E1YqrOo-0005ag-Rl@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox