pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0005Aa-NQ@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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5c9a5513a3967367e5fcc9237bc4146f4b24b408

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  |  6 ++++++
src/test/regress/output/copy.source |  6 ++++++
5 files changed, 44 insertions(+), 5 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1gOkMK-0005Aa-NQ@gemulon.postgresql.org>
Permalink:  ../E1gOkMK-0005Aa-NQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gOkMK-0005Aa-NQ@gemulon.postgresql.org

 · 

reply

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-0005Aa-NQ@gemulon.postgresql.org>
  References: <E1gOkMK-0005Aa-NQ@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