Bug with return characters when using pg_dump and a re-import

From: Robert Monro <rob(at)kusala(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug with return characters when using pg_dump and a re-import
Date: 2000-11-10 10:18:27
Message-ID: Pine.LNX.4.10.10011101009090.25251-100000@madras.kusala.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Dear Whomever,

I recently tried to export a database and import it onto another system
using pg_dump to produce the textfile dump and \i from the postgres
command prompt to pull the file into the new empty database.

I discovered that I recieved errors when re-importing because the return
characters were not being escaped properly. Namely instead of just
inserting \R (where R is the return character) the symbols R\R were
inserted. This led to the import failing as the return character was being
viewed as a deliminator for either the field or the row.

Manually converting the R\R to \R solved the problem and the import worked
fine afterwards.

The version of postgres being used for export was for linux version
7.0.2 and the version importing was also on linux and version 7.0.2

Cheers,
Rob Monro.

(Application Developer - Kusala.com)

Browse pgsql-bugs by date

  From Date Subject
Next Message Frank Miles 2000-11-10 17:24:24 Re: index(fct(primary key)) kills INSERTs
Previous Message Tom Lane 2000-11-10 06:40:01 Re: index(fct(primary key)) kills INSERTs