When using a junkfilter, the output tuple should NOT be stored back into

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9e7243063ccec18819b2935602898e76026682bd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-05-27T20:48:51Z
Releases: 7.2.1
When using a junkfilter, the output tuple should NOT be stored back into
the same tuple slot that the raw tuple came from, because that slot has
the wrong tuple descriptor.  Store it into its own slot with the correct
descriptor, instead.  This repairs problems with SPI functions seeing
inappropriate tuple descriptors --- for example, plpgsql code failing to
cope with SELECT FOR UPDATE.

Files