Re: Can I assume relation would not be invalid during from ExecutorRun to ExecutorEnd
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Can I assume relation would not be invalid during from ExecutorRun to ExecutorEnd |
| Дата | |
| Msg-id | 1215110.1638196404@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Can I assume relation would not be invalid during from ExecutorRun to ExecutorEnd (Andy Fan <zhihui.fan1213@gmail.com>) |
| Ответы |
Re: Can I assume relation would not be invalid during from ExecutorRun to ExecutorEnd
|
| Список | pgsql-hackers |
Andy Fan <zhihui.fan1213@gmail.com> writes:
> During my recent work, I need some new stuff attached to Relation. Rather
> than adding
> some new data structures, I added it to Relation directly. Like
> relation->balabala. Then
> I initialize it during ExecutorRun, like table_tuple_insert.. and
> destroy it at ExecutorEnd.
This is not going to work, at least not if you expect that a relcache
reset would not preserve the data. Also, what happens in the case of
nested executor runs touching the same relation?
Why do you think this ought to be in the relcache, and not in the
executor's rangetable-associated data structures?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера