]> granicus.if.org Git - postgresql/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:29:44 +0000 (19:29 +0200)
commit617db3a2d8ad6abc0d7be623f43edc943a6640a8
treef29d76a9394a393717290128a4cdac110cd90a5b
parentf40792a93ccdc4d01c448121da67693fc2f6297a
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