Re: Disparity in search_path SHOW and SET

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disparity in search_path SHOW and SET
Дата
Msg-id 1919.1135296237@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:
> Agreed.  I have gotten confused on how to set $user in the past.  I have
> developed the following patch that sets the default with the double
> quotes around it, and it works fine.  The patch also contains updated
> documentation.

This is really entirely irrelevant to Greg's complaint.  To respond to
that, you'd have to modify the behavior of SHOW.

Actually, it seems that this exposes a bug in the search_path code: if
I wrote what you wrote, I'd really expect that it refers to a schema
named exactly $user --- the quoting ought to suppress the substitution,
one would think.  Not sure how hard or easy that might be to implement
though ...

            regards, tom lane

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

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