Tom Lane wrote:
Ludo Smissaert writes:
Both methods works fine on server startup, but the first method gives
problems when stopping the server with pg_ctl.
Yeah, pg_ctl is far too stupid to cope with such things --- it expects
that PGDATA points at the data directory. Short of teaching it
Hi,
The Postgresql configuration files can be kept elsewhere than the data
directory, as is described in the section about "File Locations."
(18.2 of as of 8.4)[1]
The documentation here basically mentions two ways of doing this.
First you can start Postgresql with the -D option to pg_ctl point