postgresql/src/backend
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
..
access Add some documentation about how we WAL-log filesystem actions. 2010-09-17 00:42:39 +00:00
bootstrap Install a data-type-based solution for protecting pg_get_expr(). 2010-09-03 01:34:55 +00:00
catalog SERIALIZABLE transactions are actually implemented beneath the covers with 2010-09-11 18:38:58 +00:00
commands Make sure we wait for protocol-level EOF when ending binary COPY IN. 2010-09-18 20:10:15 +00:00
executor SERIALIZABLE transactions are actually implemented beneath the covers with 2010-09-11 18:38:58 +00:00
foreign Wrap calls to SearchSysCache and related functions using macros. 2010-02-14 18:42:19 +00:00
lib pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
libpq Document the existence of the socket lock file under unix_socket_directory, 2010-08-26 22:00:19 +00:00
main Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
nodes Small refactoring of makeVar() from a TargetEntry 2010-08-27 20:30:08 +00:00
optimizer Fix join-removal logic for pseudoconstant and outerjoin-delayed quals. 2010-09-14 23:15:29 +00:00
parser Give a suitable HINT when an INSERT's data source is a RowExpr containing 2010-09-18 18:37:01 +00:00
po Translation updates for 9.0beta3 2010-07-08 21:32:28 +00:00
port Simplify Windows implementation of latches. There's no need to keep a 2010-09-15 10:06:21 +00:00
postmaster Treat exit code 128 (ERROR_WAIT_NO_CHILDREN) as non-fatal on Win32, 2010-09-16 20:37:13 +00:00
regex Tweak a couple of macros in the regex code to suppress compiler warnings 2010-08-02 02:29:39 +00:00
replication Use a latch to make startup process wake up and replay immediately when 2010-09-15 10:35:05 +00:00
rewrite Standardize get_whatever_oid functions for other object types. 2010-08-05 15:25:36 +00:00
snowball Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
storage Simplify Windows implementation of latches. There's no need to keep a 2010-09-15 10:06:21 +00:00
tcop SERIALIZABLE transactions are actually implemented beneath the covers with 2010-09-11 18:38:58 +00:00
tsearch Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
utils Process options from the startup packed in walsender. Only few options 2010-09-13 09:00:30 +00:00
common.mk Expand test coverage support to entire tree 2009-08-07 20:50:22 +00:00
Makefile Split the LDFLAGS make variable into two parts: LDFLAGS is now used for 2010-07-05 18:54:38 +00:00
nls.mk Convert the core lexer and parser into fully reentrant code, by making use 2009-07-13 02:02:20 +00:00