Andy Fan <zhihui.fan1...@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