]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix ON CONFLICT DO UPDATE for tables with oids.
authorAndres Freund <andres@anarazel.de>
Mon, 28 Sep 2015 17:12:48 +0000 (19:12 +0200)
committerAndres Freund <andres@anarazel.de>
Mon, 28 Sep 2015 17:30:03 +0000 (19:30 +0200)
commit90586ef127c593002897ee0bcafdf2adb6a18c7d
tree5424e40bba124300a898e99466638ab8305b4890
parent80e2694b284cd9395b1ee8ef476f5f720ee50566
Fix ON CONFLICT DO UPDATE for tables with oids.

When taking the UPDATE path in an INSERT .. ON CONFLICT .. UPDATE tables
with oids were not supported. The tuple generated by the update target
list was projected without space for an oid - a simple oversight.

Reported-By: Peter Geoghegan
Author: Andres Freund
Backpatch: 9.5, where ON CONFLICT was introduced
src/backend/executor/nodeModifyTable.c
src/test/regress/expected/insert_conflict.out
src/test/regress/sql/insert_conflict.sql