Attach ON CONFLICT SET ... WHERE to the correct planstate.
authorAndres Freund <andres@anarazel.de>
Mon, 18 May 2015 23:55:10 +0000 (01:55 +0200)
committerAndres Freund <andres@anarazel.de>
Mon, 18 May 2015 23:55:10 +0000 (01:55 +0200)
commite4942f7a56efcfaabed5db7bde29ee21bef2f6e2
tree32aad3922e58be2380c7ac32aa38b2335ecd72e4
parent4db485e75b9672126963ae4052b50f473b30a097
Attach ON CONFLICT SET ... WHERE to the correct planstate.

The previous coding was a leftover from attempting to hang all the on
conflict logic onto modify table's child nodes. It appears to not have
actually caused problems except for explain.

Add test exercising the broken and some other code paths.

Author: Peter Geoghegan and Andres Freund
src/backend/executor/nodeModifyTable.c
src/test/regress/expected/insert_conflict.out
src/test/regress/sql/insert_conflict.sql