Re: Postgresql9.6 type cache invalidation issue - different behave of psql and pg regress
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Postgresql9.6 type cache invalidation issue - different behave of psql and pg regress |
| Дата | |
| Msg-id | 20686.1524231868@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Postgresql9.6 type cache invalidation issue - different behave ofpsql and pg regress (Pavel Stehule <pavel.stehule@gmail.com>) |
| Ответы |
Re: Postgresql9.6 type cache invalidation issue - different behave ofpsql and pg regress
|
| Список | pgsql-hackers |
Pavel Stehule <pavel.stehule@gmail.com> writes:
> In interactive mode, the build_row_from_class has unrefreshed metadata. But
> why this behave I see only in psql and not in my regress tests?
The short answer is that no plpgsql version before commit 4b93f5799
will have nice behavior for cases where you change a referenced composite
type between calls. Why that's translating to the particular behavior
you're seeing isn't clear, considering you showed only one case in
detail; but I imagine it's because a parse of the plpgsql function
happens before the ALTER TABLE in one case and not the other.
Perhaps you have different settings of check_function_bodies,
for instance.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера