Re: reset all update
От | Peter Eisentraut |
---|---|
Тема | Re: reset all update |
Дата | |
Msg-id | Pine.LNX.4.30.0106122204590.756-100000@peter.localdomain обсуждение исходный текст |
Ответ на | reset all update (Marko Kreen <marko@l-t.ee>) |
Список | pgsql-patches |
Marko Kreen writes: > On Tue, Jun 12, 2001 at 09:37:43PM +0200, Peter Eisentraut wrote: > > Marko Kreen writes: > > > *** src/backend/tcop/postgres.c 2001/06/07 04:50:57 1.219 > > > --- src/backend/tcop/postgres.c 2001/06/11 09:17:07 > > > + ctx = IsUnderPostmaster ? PGC_BACKEND : PGC_POSTMASTER; > > > + > > > > This is wrong. If you're in PostgresMain then the context is PGC_BACKEND > > -- by definition. > > Well, but how do you explain this: (line 1463 in current CVS): > > /* all options are allowed if not under postmaster */ > SetConfigOption(name, value, > (IsUnderPostmaster) ? PGC_BACKEND : PGC_POSTMASTER, true); > > As I understand, when you run ./postgres directly, you get > PGC_POSTMASTER, which includes PGC_BACKEND. You're right. Objection withdrawn. ;-) -- Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
В списке pgsql-patches по дате отправления: