Issue ERROR if FREEZE mode can't be honored by COPY

Bruce Momjian <bruce@momjian.us>

Commit: 4deb57de7dcfb66f850f16c0324731fdf3d86d09
Author: Bruce Momjian <bruce@momjian.us>
Date: 2013-01-26T18:33:24Z
Releases: 9.3.0
Issue ERROR if FREEZE mode can't be honored by COPY

Previously non-honored FREEZE mode was ignored.  This also issues an
appropriate error message based on the cause of the failure, per
suggestion from Tom.  Additional regression test case added.

Files

PathChange+/−
doc/src/sgml/ref/copy.sgml modified +4 −8
src/backend/commands/copy.c modified +20 −12
src/test/regress/expected/copy2.out modified +8 −10
src/test/regress/sql/copy2.sql modified +8 −1