From: | "Marc G(dot) Fournier" <scrappy(at)hub(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Ordering problem in backend/tcop/postgres.c ... |
Date: | 1998-10-13 20:06:44 |
Message-ID: | Pine.BSF.4.05.9810131559370.4514-100000@hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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(at)hub(dot)org
Systems Administrator @ hub.org
scrappy(at){postgresql|isc}.org ICQ#7615664
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Gucwa | 1998-10-13 20:22:47 | RE: [HACKERS] compilation problem on AIX |
Previous Message | Marc G. Fournier | 1998-10-13 19:51:07 | Odd problem with read_pg_options ... |