From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Disallow COPY FREEZE on partitioned tables
Date: Mon, 19 Nov 2018 14:17:04 +0000
Message-ID: <E1gOkMK-0005Ac-Ne@gemulon.postgresql.org> (raw)
Disallow COPY FREEZE on partitioned tables
This didn't actually work: COPY would fail to flush the right files, and
instead would try to flush a non-existing file, causing the whole
transaction to fail.
Cope by raising an error as soon as the command is sent instead, to
avoid a nasty later surprise. Of course, it would be much better to
make it work, but we don't have a patch for that yet, and we don't know
if we'll want to backpatch one when we do.
Reported-by: Tomas Vondra
Author: David Rowley
Reviewed-by: Amit Langote, Steve Singer, Tomas Vondra
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a4db7fe0f71463eb7256d3c42b7a582d3943d604
Modified Files
--------------
doc/src/sgml/perform.sgml | 4 ++--
doc/src/sgml/ref/copy.sgml | 4 +++-
src/backend/commands/copy.c | 29 +++++++++++++++++++++++++++--
src/test/regress/input/copy.source | 29 +++++++++++++++++++++++++++++
src/test/regress/output/copy.source | 23 +++++++++++++++++++++++
5 files changed, 84 insertions(+), 5 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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Disallow COPY FREEZE on partitioned tables
In-Reply-To: <E1gOkMK-0005Ac-Ne@gemulon.postgresql.org>
References: <E1gOkMK-0005Ac-Ne@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