]> granicus.if.org Git - postgresql/commit
Don't bother copying empty support arrays in a zero-column MergeJoin.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Apr 2012 15:41:54 +0000 (11:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Apr 2012 15:41:54 +0000 (11:41 -0400)
commitd515365a611a58241019c59a62b0cb79584aa725
treecf06218184b00398c0928403728c5d045303a931
parente969f9a78008d6a09abf8646f1338e2dff447cbf
Don't bother copying empty support arrays in a zero-column MergeJoin.

The case could not arise when this code was originally written, but it can
now (since we made zero-column MergeJoins work for the benefit of FULL JOIN
ON TRUE).  I don't think there is any actual bug here, but we might as well
treat it consistently with other uses of COPY_POINTER_FIELD().  Per comment
from Ashutosh Bapat.
src/backend/nodes/copyfuncs.c