Disallow COPY FREEZE on partitioned tables

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a4db7fe0f71463eb7256d3c42b7a582d3943d604
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-11-19T14:16:28Z
Releases: 11.2
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

Files

Documentation touched