]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commit85efd1a04175951a97b087908121403e4cf4ef7a
tree3d6b78061e12df79d978f2d8b7d5daf76932e17b
parentafbe03f6547015790d13d21d5eb5083cc604eeec
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