OSDN Git Service

The problem is that read_pg_options needs DataDir to read its file but
authorBruce Momjian <bruce@momjian.us>
Fri, 16 Oct 1998 06:05:18 +0000 (06:05 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 16 Oct 1998 06:05:18 +0000 (06:05 +0000)
commit8fa2742ddf205d8adc11ca5abdcf67af7984de97
tree2c2990ab6e4d5ea7249e90aeecf1fa4f030a3414
parent9f69aa083159481e54632b3a9aa786a256a773db
The problem is that read_pg_options needs DataDir to read its file but
DataDir is set after read_pg_options if postgres is called
interactively.  If postgres is forked by postgres DataDir is read from
the PGDATA enviromnent variable set by the postmaster and this explains
while the bug disappears.  I have written this patch but I don't like
it. Any better idea?

Massimo Dal Zotto
src/backend/tcop/postgres.c
src/backend/utils/init/globals.c
src/backend/utils/misc/trace.c