Обсуждение: pgsql: Attach ON CONFLICT SET ... WHERE to the correct planstate.

Поиск
Список
Период
Сортировка

pgsql: Attach ON CONFLICT SET ... WHERE to the correct planstate.

От
Andres Freund
Дата:
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e4942f7a56efcfaabed5db7bde29ee21bef2f6e2

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