Q: pg_hba.conf separate database names file format - Mailing list pgsql-general

From Albrecht Dreß
Subject Q: pg_hba.conf separate database names file format
Date
Msg-id NXFJVAUX.C35JFJNY.4IYT4D2Y@I56PTRRI.6PUFY6O7.54SL26VD
Whole thread Raw
Responses Re: Q: pg_hba.conf separate database names file format  (Michael Paquier <michael@paquier.xyz>)
List pgsql-general
Hi,

according to the docs, the database specification in the pg_hba.conf file can be read from a separate file
(<https://www.postgresql.org/docs/current/auth-pg-hba-conf.html>:“A separate file containing database names can be
specifiedby preceding the file name with @.”) 

However, I could not find a specification of the format for this file…  It appears as if simply giving each database
nameon a separate line does the job.  Is this correct?  May the file contain comments (i.e. lines starting with “#”) or
emptylines?  May the file be specified including a path (e.g. “@/some/path/databases”)? 

IMHO, it might be helpful if this information would be added to the docs.

Thanks, Albrecht.
Attachment

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Feature suggestions for backup and replication
Next
From: Imre Samu
Date:
Subject: Re: Information to CVE-2022-42889