Peter Eisentraut <peter_e@gmx.net> writes:
> If we determine the default data directory off the configure option
> --localstatedir then we can simply use the same mechanisms that have
> been discussed for determining all the other directories at run time
> relative to the binaries.
Agreed, we could let the default location of PGDATA work that way.
We still need the -D runtime option, since (unlike libdir and sharedir)
there could be multiple datadirs being run by a single set of install
files.
regards, tom lane