pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add pg_file_settings view and function
3+ messages / 2 participants
[nested] [flat]

* pgsql: Add pg_file_settings view and function
@ 2015-05-08 23:09 Stephen Frost <sfrost@snowman.net>
  2015-05-08 23:12 ` Re: pgsql: Add pg_file_settings view and function Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Stephen Frost @ 2015-05-08 23:09 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Add pg_file_settings view and function
  2015-05-08 23:09 pgsql: Add pg_file_settings view and function Stephen Frost <sfrost@snowman.net>
@ 2015-05-08 23:12 ` Andres Freund <andres@anarazel.de>
  2015-05-08 23:14   ` Re: pgsql: Add pg_file_settings view and function Stephen Frost <sfrost@snowman.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Andres Freund @ 2015-05-08 23:12 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-committers

On 2015-05-08 23:09:42 +0000, Stephen Frost wrote:
> Add pg_file_settings view and function
> 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(+)

Hm. Catversion bump missing?


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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Add pg_file_settings view and function
  2015-05-08 23:09 pgsql: Add pg_file_settings view and function Stephen Frost <sfrost@snowman.net>
  2015-05-08 23:12 ` Re: pgsql: Add pg_file_settings view and function Andres Freund <andres@anarazel.de>
@ 2015-05-08 23:14   ` Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Stephen Frost @ 2015-05-08 23:14 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers

* Andres Freund (andres@anarazel.de) wrote:
> On 2015-05-08 23:09:42 +0000, Stephen Frost wrote:
> > Add pg_file_settings view and function
> > 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(+)
> 
> Hm. Catversion bump missing?

Argh.  Yes.  Will fix.

	Thanks!

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2015-05-08 23:14 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08 23:09 pgsql: Add pg_file_settings view and function Stephen Frost <sfrost@snowman.net>
2015-05-08 23:12 ` Andres Freund <andres@anarazel.de>
2015-05-08 23:14   ` Stephen Frost <sfrost@snowman.net>

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