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

From: Michael Grimm <trashcan(at)ellael(dot)org>
To: 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:08:05
Message-ID: 41D74517-751E-47F2-9BA7-FE3E574C2FAE@ellael.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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. See
>
> https://www.postgresql.org/docs/current/runtime-config-file-locations.html

Ah! That's what I failed to find in the documentation :-(

Thanks and regards,
Michael

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2026-06-04 20:09:11 Re: Howto tell pg_ctl to use a non-default directory for config files
Previous Message Tom Lane 2026-06-04 20:02:21 Re: Howto tell pg_ctl to use a non-default directory for config files