Ludo Smissaert <ludo(at)ludikidee(dot)com> 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 to parse
the config file it's not clear what we could do about that.
regards, tom lane