doc: mention pg_reload_conf() in pg_hba.conf documentation

Started by Ian Lawrence Barwickalmost 7 years ago3 messageshackers
Jump to latest
#1Ian Lawrence Barwick
barwick@gmail.com

Hi

I noticed the documentation for pg_hba.conf:

https://www.postgresql.org/docs/current/auth-pg-hba-conf.html

says:

you will need to signal the postmaster (using pg_ctl reload or kill -HUP) to
make it re-read the file.

It would be useful to mention pg_reload_conf() as another option here, as done
elsewhere in the docs.

Patch with suggested change attached.

Regards

Ian Barwick

--
Ian Barwick https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachments:

doc-pg_hba-pg_reload_conf.v1.patchtext/x-patch; name=doc-pg_hba-pg_reload_conf.v1.patchDownload+5-5
#2Bruce Momjian
bruce@momjian.us
In reply to: Ian Lawrence Barwick (#1)
Re: doc: mention pg_reload_conf() in pg_hba.conf documentation

On Mon, Jul 15, 2019 at 12:47:18PM +0900, Ian Barwick wrote:

Hi

I noticed the documentation for pg_hba.conf:

https://www.postgresql.org/docs/current/auth-pg-hba-conf.html

says:

you will need to signal the postmaster (using pg_ctl reload or kill -HUP) to
make it re-read the file.

It would be useful to mention pg_reload_conf() as another option here, as done
elsewhere in the docs.

Patch with suggested change attached.

Oh, good point. Not sure how we missed that, but I had to fix a mention
in pg_hba.conf a while ago too. Also, there were two mentions in that
file, so I fixed them both with the attached patch. Backpatched to 9.4.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +

Attachments:

1text/plain; charset=us-asciiDownload+10-10
#3Ian Lawrence Barwick
barwick@gmail.com
In reply to: Bruce Momjian (#2)
Re: doc: mention pg_reload_conf() in pg_hba.conf documentation

On 7/16/19 10:09 AM, Bruce Momjian wrote:

On Mon, Jul 15, 2019 at 12:47:18PM +0900, Ian Barwick wrote:

Hi

I noticed the documentation for pg_hba.conf:

https://www.postgresql.org/docs/current/auth-pg-hba-conf.html

says:

you will need to signal the postmaster (using pg_ctl reload or kill -HUP) to
make it re-read the file.

It would be useful to mention pg_reload_conf() as another option here, as done
elsewhere in the docs.

Patch with suggested change attached.

Oh, good point. Not sure how we missed that, but I had to fix a mention
in pg_hba.conf a while ago too. Also, there were two mentions in that
file, so I fixed them both with the attached patch. Backpatched to 9.4.

Thanks!

I only noticed it because I was writing up some basic instructions for someone
not very familiar with Pg, and cross-referencing to the documentation.

Regards

Ian Barwick

--
Ian Barwick https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services