Re: Howto tell pg_ctl to use a non-default directory for config files - Mailing list pgsql-admin

From Michael Grimm
Subject Re: Howto tell pg_ctl to use a non-default directory for config files
Date
Msg-id AC09C3D9-EA32-4383-B088-C5ED27A6A00D@ellael.org
Whole thread
List pgsql-admin
arif rahman <arif0729@icloud.com> wrote:

> In PostgreSQL, the configuration files do not have to live inside the data directory. You can place them elsewhere
andtell 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
becomeused to keep config files where ever expected by the given service … shrug. 

Thanks for your working setup and regards,
Michael


pgsql-admin by date:

Previous
From: Jorge Daniel
Date:
Subject: Re: Pg14 replication issue , recovery stucks in a random file without advancing while streaming from primary
Next
From: Raj
Date:
Subject: Size of /pgdata