Re: take 2: show all / reset all

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: take 2: show all / reset all
Дата
Msg-id Pine.LNX.4.30.0106090112540.757-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: take 2: show all / reset all  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: take 2: show all / reset all  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: take 2: show all / reset all  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane writes:

> This looks fairly bogus, given the comment on ResetAllOptions:
>
> /*
>  * Reset all options to their specified default values. Should only be
>  * called at program startup.
>  */
>
> Or is that OK now with the "makeDefault" addition to SetConfigOption?

Evidently not quite:

peter=# show port;
NOTICE:  port is 6543
SHOW VARIABLE
peter=# reset all;
RESET VARIABLE
peter=# show port;
NOTICE:  port is 5432
SHOW VARIABLE

This is because I started the postmaster with -p 6543, but that assigns to
the variable directly and does not save it as default.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: take 2: show all / reset all
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Fw: Isn't pg_statistic a security hole - Solution Proposal