| От | Tom Lane |
|---|---|
| Тема | Re: RangeTblEntry modifications |
| Дата | |
| Msg-id | 15248.993962861@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: RangeTblEntry modifications (Alex Pilosov <alex@pilosoft.com>) |
| Ответы |
Re: RangeTblEntry modifications
|
| Список | pgsql-hackers |
Alex Pilosov <alex@pilosoft.com> writes:
> I think I just understood what you were saying: having tupleDesc in RTE is
> not kosher, because RTE can last longer than a given tupleDesc?
Depends where you got the tupleDesc from --- if you copy it into the
parse context then it's OK in terms of not disappearing. However,
that doesn't mean it's still *valid*. Consider
begin;declare foo cursor for select * from bar;create view v1 as select * from cursor foo;end;
Now the cursor foo is no more, but v1 still exists ... what happens
when we try to select from v1?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера