public inbox for [email protected]
help / color / mirror / Atom feedFrom: Michael Grimm <[email protected]>
To: [email protected]
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
Date: Fri, 12 Jun 2026 22:59:10 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
arif rahman <[email protected]> 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
view thread (7+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox