public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Michael Grimm <[email protected]>
Cc: [email protected]
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
Date: Thu, 04 Jun 2026 16:02:21 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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.  See

https://www.postgresql.org/docs/current/runtime-config-file-locations.html

			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