pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix ON CONFLICT DO UPDATE for tables with oids.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix ON CONFLICT DO UPDATE for tables with oids.
@ 2015-09-28 17:31  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2015-09-28 17:31 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/617db3a2d8ad6abc0d7be623f43edc943a6640a8

Modified Files
--------------
src/backend/executor/nodeModifyTable.c        |    2 +-
src/test/regress/expected/insert_conflict.out |   59 +++++++++++++++++++++++++
src/test/regress/sql/insert_conflict.sql      |   22 +++++++++
3 files changed, 82 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix ON CONFLICT DO UPDATE for tables with oids.
@ 2015-09-28 17:31  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2015-09-28 17:31 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/90586ef127c593002897ee0bcafdf2adb6a18c7d

Modified Files
--------------
src/backend/executor/nodeModifyTable.c        |    2 +-
src/test/regress/expected/insert_conflict.out |   59 +++++++++++++++++++++++++
src/test/regress/sql/insert_conflict.sql      |   22 +++++++++
3 files changed, 82 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-09-28 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28 17:31 pgsql: Fix ON CONFLICT DO UPDATE for tables with oids. Andres Freund <andres@anarazel.de>
2015-09-28 17:31 pgsql: Fix ON CONFLICT DO UPDATE for tables with oids. Andres Freund <andres@anarazel.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox