]> granicus.if.org Git - postgresql/commit
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)
commit3d02cae310deec7ca48ada68e553bfeedbd0f638
tree231ac03313d6df497cc76c1302c2a9a38fc9c6bf
parent053835d334a6c533e3304e0171c078bc04f9514c
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