Re: Howto tell pg_ctl to use a non-default directory for config files - Mailing list pgsql-admin

From Tom Lane
Subject Re: Howto tell pg_ctl to use a non-default directory for config files
Date
Msg-id 3441657.1780603341@sss.pgh.pa.us
Whole thread
In response to Howto tell pg_ctl to use a non-default directory for config files  (Michael Grimm <trashcan@ellael.org>)
Responses Re: Howto tell pg_ctl to use a non-default directory for config files
Re: Howto tell pg_ctl to use a non-default directory for config files
List pgsql-admin
Michael Grimm <trashcan@ellael.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
filesreside 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



pgsql-admin by date:

Previous
From: Michael Grimm
Date:
Subject: Howto tell pg_ctl to use a non-default directory for config files
Next
From: Michael Grimm
Date:
Subject: Re: Howto tell pg_ctl to use a non-default directory for config files