Re: Disparity in search_path SHOW and SET

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Disparity in search_path SHOW and SET
Дата
Msg-id 200512230038.jBN0cSu09861@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Disparity in search_path SHOW and SET  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
OK, applied.  I have _not_ backpatched this.

---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Uh, SHOW does show the quotes:
>
> >     test=> show search_path;
> >       search_path
> >     ----------------
> >      "$user",public
> >     (1 row)
>
> Hmm ... you're right, it does, so the current default is actually a
> value that you can't get into the variable by a normal SET.
> Interesting.  (We are doing the "smart" stuff during SET not SHOW,
> it appears.)
>
> regression=# show search_path ;
>  search_path
> --------------
>  $user,public
> (1 row)
>
> regression=# set search_path = '$user',public;
> SET
> regression=# show search_path ;
>    search_path
> -----------------
>  "$user", public
> (1 row)
>
> Given that, I agree with changing the default string.  It should look
> the same as a value that you could actually assign ...
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Disparity in search_path SHOW and SET
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8 encoding