Re: Disparity in search_path SHOW and SET

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disparity in search_path SHOW and SET
Дата
Msg-id 2749.1135297596@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Disparity in search_path SHOW and SET  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Disparity in search_path SHOW and SET  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
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

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Trouble building 8.1.1 on Tru64 UNIX 5.1
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Disparity in search_path SHOW and SET