Re: take 2: show all / reset all - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: take 2: show all / reset all
Date
Msg-id 200106112219.f5BMJUp19679@candle.pha.pa.us
Whole thread Raw
In response to Re: take 2: show all / reset all  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Looks like this is fixed in the pending patch that uses GUC calls to set
variables from the command line.


> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: YA readline 4.2 patch
Next
From: Bruce Momjian
Date:
Subject: Re: Australian timezone configure option