| From: | Michael Grimm <trashcan(at)ellael(dot)org> |
|---|---|
| To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Howto tell pg_ctl to use a non-default directory for config files |
| Date: | 2026-06-12 20:59:10 |
| Message-ID: | AC09C3D9-EA32-4383-B088-C5ED27A6A00D@ellael.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
arif rahman <arif0729(at)icloud(dot)com> wrote:
> In PostgreSQL, the configuration files do not have to live inside the data directory. You can place them elsewhere and tell PostgreSQL where to find them.
>
> # Set postgresql.conf outside the data directory
> hba_file = '/usr/local/etc/postgres/pg_hba.conf’
>
> Then start
> postgres -D /var/db/postgres/data \
> -c config_file=/usr/local/etc/postgres/postgresql.conf
JFTR: that worked perfectly well.
But, I moved on to use pg_auto_failover which is very picky w.r.t. to the location of config files. Thus I will have to become used to keep config files where ever expected by the given service … shrug.
Thanks for your working setup and regards,
Michael
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raj | 2026-06-13 06:48:22 | Size of /pgdata |
| Previous Message | Jorge Daniel | 2026-06-08 10:28:42 | Re: Pg14 replication issue , recovery stucks in a random file without advancing while streaming from primary |