Re: Howto tell pg_ctl to use a non-default directory for config files

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files
Date: 2026-06-04 20:09:11
Message-ID: CANzqJaC6GW4G7Xe+BWq3q9+D0cvLuzvzJdK32tzXQv1_xA4YGA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Jun 4, 2026 at 4:02 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Michael Grimm <trashcan(at)ellael(dot)org> 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!

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2026-06-04 20:15:11 Re: Howto tell pg_ctl to use a non-default directory for config files
Previous Message Michael Grimm 2026-06-04 20:08:05 Re: Howto tell pg_ctl to use a non-default directory for config files