https://github.com/postgres/postgres
Revision aae2a02c9d04bf8fc7469cb2097a6ef44e273bc9 authored by Tom Lane on 21 January 2011, 21:22:35 UTC, committed by Tom Lane on 21 January 2011, 21:22:35 UTC
Specifically, this makes the workflow pg_dump -Fc -> pg_restore -> file
produce correct output for BLOBs when the source database has
standard_conforming_strings turned on.  It was already okay when that was
off, or if pg_restore was told to restore directly into a database.

This is a back-port of commit b1732111f233bbb72788e92a627242ec28a85631 of
2009-08-04, with additional changes to emit old-style escaped bytea data
instead of hex-style.  At the time, we had not heard of anyone encountering
the problem in the field, so I judged it not worth the risk of changing
back branches.  Now we do have a report, from Bosco Rama, so back-patch
into 8.2 through 8.4.  9.0 and up are okay already.
1 parent 2a0abe1
History
Tip revision: aae2a02c9d04bf8fc7469cb2097a6ef44e273bc9 authored by Tom Lane on 21 January 2011, 21:22:35 UTC
Fix pg_restore to do the right thing when escaping large objects.
Tip revision: aae2a02
File Mode Size
config
contrib
doc
src
.gitignore -rw-r--r-- 233 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.7 KB
Makefile -rw-r--r-- 1.4 KB
README -rw-r--r-- 2.0 KB
README.git -rw-r--r-- 820 bytes
aclocal.m4 -rw-r--r-- 445 bytes
configure -rwxr-xr-x 694.3 KB
configure.in -rw-r--r-- 47.2 KB

README

back to top