| От | Tom Lane |
|---|---|
| Тема | Re: Transactions and "create or replace function" |
| Дата | |
| Msg-id | 23883.1114299681@sss.pgh.pa.us обсуждение |
| Ответ на | Transactions and "create or replace function" (Ron Mayer <rm_pg@cheapcomplexdevices.com>) |
| Список | pgsql-bugs |
Ron Mayer <rm_pg@cheapcomplexdevices.com> writes:
> I would have expected that since the CREATE OR REPLACE was
> in a separate connection, and hense a separate transaction,
> that all the results of the select() will have been processed
> by the same function.
System catalog accesses are generally done with SnapshotNow semantics
--- in particular, lookups for function definitions will be done that
way. Although the PL languages all cache function definitions, they go
out of their way to verify that the cache is still up-to-date each time
it is used. I don't recall the exact example that made us conclude we
had to act that way, but it's unlikely to be changed.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера