Ensure that INSERT ... SELECT into a table with OIDs never copies row OIDs
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Feb 2009 18:02:27 +0000 (18:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Feb 2009 18:02:27 +0000 (18:02 +0000)
commitba9d51850b9e5de714f58885e1d51072e96f2e07
treedb3edc3e628aad291236a7ce7422ead2c7a0c577
parent82d6746d327a2527a686e223b61d494741a08e97
Ensure that INSERT ... SELECT into a table with OIDs never copies row OIDs
from the source table.  This could never happen anyway before 8.4 because
the executor invariably applied a "junk filter" to rows due to be inserted;
but now that we skip doing that when it's not necessary, the case can occur.
Problem noted 2008-11-27 by KaiGai Kohei, though I misunderstood what he
was on about at the time (the opacity of the patch he proposed didn't help).
src/backend/executor/execMain.c