mirror of
https://github.com/postgres/postgres.git
synced 2025-12-24 06:01:07 +03:00
Before commit6b65a7fe62, tqueue.c could perform tuple remapping and thus leak memory, which is why commitaf33039317made TupleQueueReaderNext run in a short-lived context. Now, however, tqueue.c has been reduced to a shadow of its former self, and there shouldn't be any chance of leaks any more. Accordingly, remove some tuple copying and memory context manipulation to speed up processing. Patch by me, reviewed by Amit Kapila. Some testing by Rafia Sabih. Discussion: http://postgr.es/m/CAA4eK1LSDydwrNjmYSNkfJ3ZivGSWH9SVswh6QpNzsMdj_oOQA@mail.gmail.com