postgresql/src/backend/commands
Tom Lane f906e0786e Make sure we wait for protocol-level EOF when ending binary COPY IN.
The previous coding just terminated the COPY immediately after seeing
the EOF marker (-1 where a row field count is expected).  The expected
CopyDone or CopyFail message just got thrown away later, since we weren't
in COPY mode anymore.  This behavior complicated matters for the JDBC
driver, and arguably was the wrong thing in any case since a CopyFail
message after the marker wouldn't be honored.

Note that there is a behavioral change here: extra data after the EOF
marker was silently ignored before, but now it will cause an error.
Hence not back-patching, although this is arguably a bug.

Per report and patch by Kris Jurka.
2010-09-18 20:10:15 +00:00
..
Makefile Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
aggregatecmds.c Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
alter.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
analyze.c Fix ANALYZE's ancient deficiency of not trying to collect stats for expression 2010-08-01 22:38:11 +00:00
async.c Modify ShmemInitStruct and ShmemInitHash to throw errors internally, 2010-04-28 16:54:16 +00:00
cluster.c Add explicit regression tests for ALTER TABLE lock levels. 2010-07-29 11:06:34 +00:00
comment.c Remove duplicated code left behind by my recent refactoring of comment.c 2010-09-17 02:49:10 +00:00
constraint.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
conversioncmds.c Standardize get_whatever_oid functions for other object types. 2010-08-05 15:25:36 +00:00
copy.c Make sure we wait for protocol-level EOF when ending binary COPY IN. 2010-09-18 20:10:15 +00:00
dbcommands.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
define.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
discard.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
explain.c Make EXPLAIN show the function call expression of a FunctionScan plan node, 2010-08-24 21:20:36 +00:00
foreigncmds.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
functioncmds.c Standardize get_whatever_oid functions for other object types. 2010-08-05 15:25:36 +00:00
indexcmds.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
lockcmds.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
opclasscmds.c Standardize get_whatever_oid functions for other object types. 2010-08-05 15:25:36 +00:00
operatorcmds.c pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
portalcmds.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
prepare.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
proclang.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
schemacmds.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
sequence.c Fix failure of "ALTER TABLE t ADD COLUMN c serial" when done by non-owner. 2010-08-18 18:35:21 +00:00
tablecmds.c Fix failure of "ALTER TABLE t ADD COLUMN c serial" when done by non-owner. 2010-08-18 18:35:21 +00:00
tablespace.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
trigger.c SERIALIZABLE transactions are actually implemented beneath the covers with 2010-09-11 18:38:58 +00:00
tsearchcmds.c Standardize get_whatever_oid functions for other object types. 2010-08-05 15:25:36 +00:00
typecmds.c Fix failure of "ALTER TABLE t ADD COLUMN c serial" when done by non-owner. 2010-08-18 18:35:21 +00:00
user.c Standardize get_whatever_oid functions for object types with 2010-08-05 14:45:09 +00:00
vacuum.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
vacuumlazy.c pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
variable.c Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
view.c Fix failure of "ALTER TABLE t ADD COLUMN c serial" when done by non-owner. 2010-08-18 18:35:21 +00:00