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

From Tom Lane
Subject Re: Howto tell pg_ctl to use a non-default directory for config files
Date
Msg-id 3442636.1780604111@sss.pgh.pa.us
Whole thread
In response to Re: Howto tell pg_ctl to use a non-default directory for config files  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-admin
Ron Johnson <ronljohnsonjr@gmail.com> writes:
> On Thu, Jun 4, 2026 at 4:02 PM Tom Lane <tgl@sss.pgh.pa.us> 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



pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
Next
From: Raj
Date:
Subject: Re: Low TPS