git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3e353a7) | patch
Fix reporting of constraint violations for table partitioning.
Wed, 4 Jan 2017 19:36:34 +0000 (14:36 -0500)
Wed, 4 Jan 2017 19:36:34 +0000 (14:36 -0500)
commit f1b4c771ea74f42447dccaed42ffcdcccf3aa694
Fix reporting of constraint violations for table partitioning.

After a tuple is routed to a partition, it has been converted from the
root table's row type to the partition's row type. ExecConstraints
needs to report the failure using the original tuple and the parent's
tuple descriptor rather than the ones for the selected partition.

Amit Langote
src/backend/commands/copy.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/executor/execMain.c diff | blob | blame | history
src/backend/executor/nodeModifyTable.c diff | blob | blame | history
src/include/executor/executor.h diff | blob | blame | history
src/include/nodes/execnodes.h diff | blob | blame | history
src/test/regress/expected/insert.out diff | blob | blame | history
src/test/regress/sql/insert.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /