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