]> git.ipfire.org Git - thirdparty/postgresql.git/commit
This patch can be installed as part of 1.02.1 so people can properly
authorMarc G. Fournier <scrappy@hub.org>
Wed, 14 Aug 1996 05:33:11 +0000 (05:33 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 14 Aug 1996 05:33:11 +0000 (05:33 +0000)
commite7a110b418f557d768d7d6bfe595268f092201bc
treeac43b884a4c0bcf96535fb78914ca420c3519237
parent15a645014a67f02206ffb34f65557acbd49fd54d
This patch can be installed as part of 1.02.1 so people can properly
pg_dump and load to 2.0.  I haven't gotten any feedback on whether
people want it, so I am submitting it for others to decide.  I would
recommend an install in 1.02.1.

I had said that the 2.0 pg_dump could dump a 1.02.1 database, but I was
wrong.  The copy is actually performed by the backend, and the 2.0
database will not be able to read 1.02.1 databases because of the new
system columns.

This patch does several things.  It copies nulls out as \N, so they can
be distinguished from '' strings.  It fixes a problem where backslashes
in the input stream were not output as double-backslashes.  Without this
patch, backslashes copied out were deleted upon input, or interpreted as
special characters.  Third, input is now terminated by backslash-period.
This can not be part of a normal input stream.

I tested this by creating a database with all sorts of nulls, backslash,
and period fields and dumped the database and reloaded into a new
database and compared them.

Submitted by: Bruce
src/backend/commands/copy.c
src/bin/pg_dump/pg_dump.c