Fix dumb bug in tqueue.c

Robert Haas <rhaas@postgresql.org>

Commit: adeee974866085db84b860c1f397dd7c6b136a0a
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-11-18T13:25:33Z
Releases: 9.6.0
Fix dumb bug in tqueue.c

When I wrote this code originally, the intention was to recompute the
remapinfo only when the tupledesc changes.  This presumably only
happens once per query, but I copied the design pattern from other
DestReceivers.  However, due to a silly oversight on my part,
tqueue->tupledesc never got set, leading to recomputation for every
tuple.

This should improve the performance of parallel scans that return a
significant number of tuples.

Report by Amit Kapila; patch by me, reviewed by him.

Files

PathChange+/−
src/backend/executor/tqueue.c modified +4 −4