From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix crash in multi-insert COPY
Date: Wed, 17 Oct 2018 18:43:39 +0000
Message-ID: <E1gCqnD-0006S4-IB@gemulon.postgresql.org> (raw)
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>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a7a1b44516e7db89104c06440f759c2831fcb0ff
Modified Files
--------------
src/backend/commands/copy.c | 27 +++++++++++++--------------
src/test/regress/input/copy.source | 19 +++++++++++++++++++
src/test/regress/output/copy.source | 20 ++++++++++++++++++++
3 files changed, 52 insertions(+), 14 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Fix crash in multi-insert COPY
In-Reply-To: <E1gCqnD-0006S4-IB@gemulon.postgresql.org>
References: <E1gCqnD-0006S4-IB@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox