]> granicus.if.org Git - postgresql/commit
Allow ON CONFLICT .. DO NOTHING on a partitioned table.
authorRobert Haas <rhaas@postgresql.org>
Mon, 27 Mar 2017 14:37:29 +0000 (10:37 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 27 Mar 2017 14:37:41 +0000 (10:37 -0400)
commit8355a011a0124bdf7ccbada206a967d427039553
tree2aa543f244724152d7a692eb694e54ef1455dd1d
parent3371e4d9b12455fe1f8d1516d0bd915aab86be17
Allow ON CONFLICT .. DO NOTHING on a partitioned table.

ON CONFLICT .. DO UPDATE still doesn't work, for lack of a way of
enforcing uniqueness across partitions, but we can still allow this
case.

Amit Langote, per discussion with Peter Geoghegan.  Additional
wordsmithing by me.

Discussion: http://postgr.es/m/CAA-aLv7Z4uygtq-Q5CvDi9Y=VZxUyEnuWjL=EwCfOof=L04hgg@mail.gmail.com
doc/src/sgml/ddl.sgml
src/backend/parser/analyze.c
src/test/regress/expected/insert_conflict.out
src/test/regress/sql/insert_conflict.sql