Ordering problem in backend/tcop/postgres.c ...

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема Ordering problem in backend/tcop/postgres.c ...
Дата
Msg-id Pine.BSF.4.05.9810131559370.4514-100000@hub.org
обсуждение исходный текст
Список 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@hub.org
Systems Administrator @ hub.org
scrappy@{postgresql|isc}.org                       ICQ#7615664


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Odd problem with read_pg_options ...
Следующее
От: Peter Gucwa
Дата:
Сообщение: RE: [HACKERS] compilation problem on AIX