Found it...we do a read_pg_option *before* doing the getopt():
> echo "vacuum" | postgres -o /dev/null -F -Q -D
/home/centre/marc/pgsql/data
before sprintf()
/home/centre/marc/pgsql/data
after sprintf()
-D option
So, when DataDir isn't set by the ENV variable, of course, this doesn't
work...
Hate to be picky here, but there isn't even any documentation on the
pg_options file:
Pattern not found
> grep pg_option *
> pwd
/usr/local/src/marc/pgsql/src/man
I just added a check to postgres.c so that if(DataDir) is set, *then* do
read_pg_options, else skip it. Whomever added this code in, would it make
better sense to have this parsed *after* getopt() is finished? And is
there any documenation for this feature?
Marc G. Fournier scrappy@hub.org
Systems Administrator @ hub.org
scrappy@{postgresql|isc}.org ICQ#7615664