Robert Haas <robertmh...@gmail.com> writes: > Heh. I was actually asking an even stupider question, which is why do > we need to keep all of them in ANY centrally known data structure? > What operation do we perform that requires us to find all of the > exstant TTS?
ExecDropTupleTable is used to release slot-related buffer pins and tupdesc refcounts at conclusion of a query. I suppose we could require the individual plan node End routines to do it instead. Not sure if that's an improvement. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers