public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Ron Johnson <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
Date: Thu, 04 Jun 2026 16:15:11 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CANzqJaC6GW4G7Xe+BWq3q9+D0cvLuzvzJdK32tzXQv1_xA4YGA@mail.gmail.com>
References: <[email protected]>
	<[email protected]>
	<CANzqJaC6GW4G7Xe+BWq3q9+D0cvLuzvzJdK32tzXQv1_xA4YGA@mail.gmail.com>

Ron Johnson <[email protected]> writes:
> On Thu, Jun 4, 2026 at 4:02 PM Tom Lane <[email protected]> wrote:
>> Typically you would say "pg_ctl -D /usr/local/etc/postgres" to point
>> it at the config file.  Then you would need the config file to include
>> data_directory and perhaps other settings pointing to wherever the
>> actual data files are.

> Is it standard to point PGDATA to an etc directory instead of to the "data"
> directory?

It is if you want the server's configuration files to be separate from
the data.

			regards, tom lane






view thread (7+ messages)  latest in thread

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], [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