Re: Set search_path + server-prepared statements = cached plan must not change result type
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Set search_path + server-prepared statements = cached plan must not change result type |
| Дата | |
| Msg-id | 15792.1453744617@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Set search_path + server-prepared statements = cached plan must not change result type (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: Set search_path + server-prepared statements = cached plan must not change result type
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> On 2016-01-25 12:39:29 -0500, Robert Haas wrote:
>> What is the ideal behavior, in your view?
> FWIW, I think that for a lot of practical cases the previous behaviour,
> where a prepared statement was defined in the context of the search path
> set during the PREPARE, made a lot more sense.
That argument is defensible probably for explicit PREPARE, but not at all
so for preparing done behind the scenes, as plpgsql does it, or as jdbc
does it. The previous behavior amounted to silent inconsistency for
plpgsql users; statements that weren't obviously different might be
executed with the current search_path or with some previous setting.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера