| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | "Subramanian,Ramachandran" <ramachandran(dot)subramanian(at)alte-leipziger(dot)de>, "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: How to start an instance with explicit pg_hba.conf |
| Date: | 2026-11-20 10:45:00 |
| Message-ID: | c32832c03a60d28ab782dba6b936fba5ef84753b.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
On Fri, 2026-11-20 at 08:03 +0000, Subramanian,Ramachandran wrote:
> I have a requirement to start an instance in special cases with a different pg_hba.conf.
>
> After this instance runs for a few minutes, I have to restart it with it’s original/normal pg_hba.conf.
>
> If possible, I want to avoid renaming and re-renaming the pg_hba.conf.
>
> Is there a way to start the instance with an explicitly specified pg_hba.conf?
/path/to/pgsql/bin/pg_ctl start -D /data/directory -o '-c hba_file="/wherever/pg_hba.conf"'
That will use the "postgresql.conf" in "/data/directory", but override the
setting for the "pg_hba.conf" file.
Yours,
Laurenz Albe
| From | Date | Subject | |
|---|---|---|---|
| Next Message | ikramuddin | 2026-11-20 19:55:54 | pgadmin not included in pg19 window installer |
| Previous Message | ikramuddin | 2026-11-20 09:09:38 | Re: How to start an instance with explicit pg_hba.conf |