]> granicus.if.org Git - postgresql/commit
When using a junkfilter, the output tuple should NOT be stored back into
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 May 2001 20:48:51 +0000 (20:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 May 2001 20:48:51 +0000 (20:48 +0000)
commit9e7243063ccec18819b2935602898e76026682bd
treef3f18b74b94a48652d4e55bda1ddd2962f73b999
parenta3855c57618b21589b164ea0f15821b4bb644aaa
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.
src/backend/executor/execJunk.c
src/backend/executor/execMain.c
src/include/executor/executor.h
src/include/nodes/execnodes.h