]> granicus.if.org Git - postgresql/commit
Disallow COPY FREEZE on partitioned tables
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 19 Nov 2018 14:16:28 +0000 (11:16 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 19 Nov 2018 14:16:28 +0000 (11:16 -0300)
commita4db7fe0f71463eb7256d3c42b7a582d3943d604
tree3986e674275a63bc3c568eea9fdc2e6d0fdfbd25
parent6534d544cd77e14a93f5c779fa8addee8d916a66
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
doc/src/sgml/perform.sgml
doc/src/sgml/ref/copy.sgml
src/backend/commands/copy.c
src/test/regress/input/copy.source
src/test/regress/output/copy.source