]> granicus.if.org Git - postgresql/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:44:25 +0000 (05:44 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 14 Aug 1996 05:44:25 +0000 (05:44 +0000)
commit476ef109133b1e062c2805d4932ef331dda84a68
treef51d6ceb7c78793da32e21f71f1cb7cb644a47b6
parente7a110b418f557d768d7d6bfe595268f092201bc
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/bin/psql/psql.c