postgresql/src/bin
Tom Lane 78e957dd46 Fix pg_restore's direct-to-database mode for standard_conforming_strings.
pg_backup_db.c contained a mini SQL lexer with which it tried to identify
boundaries between SQL commands, but that code was not designed to cope
with standard_conforming_strings, and would get the wrong answer if a
backslash immediately precedes a closing single quote in such a string,
as per report from Julian Mehnle.  The bug only affects direct-to-database
restores from archive files made with standard_conforming_strings = on.

Rather than complicating the code some more to try to fix that, let's just
rip it all out.  The only reason it was needed was to cope with COPY data
embedded into ordinary archive entries, which was a layout that was used
only for about the first three weeks of the archive format's existence,
and never in any production release of pg_dump.  Instead, just rely on the
archive file layout to tell us whether we're printing COPY data or not.

This bug represents a data corruption hazard in all releases in which
standard_conforming_strings can be turned on, ie 8.2 and later, so
back-patch to all supported branches.
2011-07-28 14:07:09 -04:00
..
initdb Quotes in strings injected into bki file need to escaped. In particular, 2011-04-20 09:59:46 +03:00
pg_config Translation updates for release 9.0.2 2010-12-13 23:20:00 +02:00
pg_controldata Translation updates for release 9.0.2 2010-12-13 23:20:00 +02:00
pg_ctl Use the correct eventlog severity for error 2011-06-09 18:26:29 +02:00
pg_dump Fix pg_restore's direct-to-database mode for standard_conforming_strings. 2011-07-28 14:07:09 -04:00
pg_resetxlog Translation updates for release 9.0.2 2010-12-13 23:20:00 +02:00
pgevent Allow vpath builds and regression tests to succeed on Mingw. Backpatch to release 8.4 - earlier releases would require more changes and it's not worth the trouble. 2010-12-24 13:31:48 -05:00
psql Add missing newlines at end of error messages 2011-07-26 23:28:44 +03:00
scripts Translation updates for release 9.0.2 2010-12-13 23:20:00 +02:00
Makefile Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00