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

On Thu, Jun 4, 2026 at 4:02 PM Tom Lane <[email protected]> wrote:

> Michael Grimm <[email protected]> writes:
> > Question:
> > Is there a way to tell PostgreSQL to look for config files in e.g.
> /usr/local/etc/postgres, where normally all config files reside in FreeBSD?
> [2]
>
> 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?

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


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]
  Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
  In-Reply-To: <CANzqJaC6GW4G7Xe+BWq3q9+D0cvLuzvzJdK32tzXQv1_xA4YGA@mail.gmail.com>

* 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