From: | "Prabakaran, Vaishnavi" <vaishnavip(at)fast(dot)au(dot)fujitsu(dot)com> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Providing catalog view to pg_hba.conf file - Patch submission |
Date: | 2014-03-14 05:30:34 |
Message-ID: | F40B0968DB0A904DA78A924E633BE78645FE29@SYDEXCHTMP2.au.fjanz.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
In connection to my previous proposal about "providing catalog view to
pg_hba.conf file contents" , I have developed the attached patch .
[Current situation]
Currently, to view the pg_hba.conf file contents, DB admin has to access
the file from database server to read the settings. In case of huge and
multiple hba files, finding the appropriate hba rules which are loaded
will be difficult and take some time.
[What this Patch does]
Functionality of the attached patch is that it will provide a new view
"pg_hba_settings" to admin users. Public access to the view is
restricted. This view will display basic information about HBA setting
details of postgresql cluster. Information to be shown , is taken from
parsed hba lines and not directly read from pg_hba.conf files.
Documentation files are also updated to include details of this new view
under "Chapter 47.System Catalogs". Also , a new note is added in
"chapter 19.1 The pg_hba.conf File"
[Advantage]
Advantage of having this "pg_hba_settings" view is that the admin can
check, what hba rules are loaded in runtime via database connection
itself. And, thereby it will be easy and useful for admin to check all
the users with their privileges in a single view to manage them.
Thanks & Regards,
Vaishnavi
Fujitsu Australia
Attachment | Content-Type | Size |
---|---|---|
Catalog_view_to_HBA_settings_patch.patch | application/octet-stream | 15.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | KONDO Mitsumasa | 2014-03-14 05:48:20 | Re: gaussian distribution pgbench |
Previous Message | Amit Kapila | 2014-03-14 03:42:23 | Re: issue log message to suggest VACUUM FULL if a table is nearly empty |