]> granicus.if.org Git - postgresql/commit
Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables.
authorRobert Haas <rhaas@postgresql.org>
Fri, 1 Dec 2017 17:53:21 +0000 (12:53 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 1 Dec 2017 17:53:21 +0000 (12:53 -0500)
commit87c37e3291cb75273ccdf4645b9472dd805c4493
tree7b952cc4b152b695193efcd98d006fd2d8b65280
parent1cbc17aaca82b2e262912da96c49b2e1d2f492e7
Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables.

Commit 8355a011a0124bdf7ccbada206a967d427039553 was reverted in
f05230752d53c4aa74cffa9b699983bbb6bcb118, but this attempt is
hopefully better-considered: we now pass the correct value to
ExecOpenIndices, which should avoid the crash that we hit before.

Amit Langote, reviewed by Simon Riggs and by me.  Some final
editing by me.

Discussion: http://postgr.es/m/7ff1e8ec-dc39-96b1-7f47-ff5965dceeac@lab.ntt.co.jp
doc/src/sgml/ddl.sgml
src/backend/commands/copy.c
src/backend/executor/execPartition.c
src/backend/executor/nodeModifyTable.c
src/backend/parser/analyze.c
src/include/executor/execPartition.h
src/test/regress/expected/insert_conflict.out
src/test/regress/sql/insert_conflict.sql