]> granicus.if.org Git - postgresql/commit
Fix crash in multi-insert COPY
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 17 Oct 2018 18:31:20 +0000 (20:31 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 17 Oct 2018 18:31:20 +0000 (20:31 +0200)
commita7a1b44516e7db89104c06440f759c2831fcb0ff
treea7fa2029dbaf83e70236b885d76d915aa6b2d409
parentd8cc1616b5547d49d899be7b68713272ce334708
Fix crash in multi-insert COPY

A bug introduced in 0d5f05cde011512e605bb2688d9b1fbb5b3ae152
considered the *previous* partition's triggers when deciding whether
multi-insert can be used.  Rearrange the code so that the current
partition is considered.

Author: Ashutosh Sharma <ashu.coek88@gmail.com>
src/backend/commands/copy.c
src/test/regress/input/copy.source
src/test/regress/output/copy.source