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: Howto tell pg_ctl to use a non-default directory for config files
Date: 2026-06-04 19:54:37
Message-ID: B10D18DA-90EC-44A3-9180-967690991789@ellael.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

FYI: I am pretty new to PostgreSQL, and I am intending to migrate from an MariaDB/Galera cluster to PostgreSQL with either Patroni or pg_auto_failover. And, I have successfully tested a stand-alone database with my client of interest [1], both running inside a FreeBSD jail.

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]

Thanks and regards,
Michael

[1] https://dbmail.org
[2] As an intermediate solution I am using soft links from $PGDATA to /usr/local/etc/postgres

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2026-06-04 20:02:21 Re: Howto tell pg_ctl to use a non-default directory for config files
Previous Message Frank Heikens 2026-06-04 04:18:12 Re: Low TPS