postgresql/src
Robert Haas 91fa8532f4 Attempt to fix error recovery in COPY BOTH mode.
Previously, libpq and the backend had opposite ideas about whether
it was necessary for the client to send a CopyDone message after
receiving an ErrorResponse, making it impossible to cleanly exit
COPY BOTH mode.  Fix libpq so that works correctly, adopting the
backend's notion that an ErrorResponse kills the copy in both
directions.

Adjust receivelog.c to avoid a degradation in the quality of the
resulting error messages.  libpqwalreceiver.c is already doing
the right thing, so no adjustment needed there.

Add an explicit statement to the documentation explaining how
this part of the protocol is supposed to work, in the hopes of
avoiding future confusion in this area.

Since the consequences of all this confusion are very limited,
especially in the back-branches where no client ever attempts
to exit COPY BOTH mode without closing the connection entirely,
no back-patch.
2013-04-29 06:29:32 -04:00
..
backend Introduce new page checksum algorithm and module. 2013-04-29 09:05:27 +01:00
bin Attempt to fix error recovery in COPY BOTH mode. 2013-04-29 06:29:32 -04:00
common
include Introduce new page checksum algorithm and module. 2013-04-29 09:05:27 +01:00
interfaces Attempt to fix error recovery in COPY BOTH mode. 2013-04-29 06:29:32 -04:00
makefiles
pl Move pqsignal() to libpgport. 2013-03-17 12:06:42 -04:00
port initdb needs pqsignal() even on Windows. 2013-03-17 15:19:47 -04:00
template
test Fix collation assignment for aggregates with ORDER BY. 2013-04-26 15:48:53 -04:00
timezone Update time zone data files to tzdata release 2013b. 2013-03-28 15:25:48 -04:00
tools pgindent: add newline to die() so script line number is not reported on failure. 2013-04-16 10:30:35 -04:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile
Makefile.global.in Fix sporadic rebuilds for .pc files 2013-04-12 22:49:25 -04:00
Makefile.shlib Add pkg-config files for libpq and ecpg libraries 2013-03-31 16:58:40 -04:00
nls-global.mk
win32.mak