Re: Error restoring bytea from dump

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Egy?d Csaba (Freemail)" <csegyud(at)freemail(dot)hu>
Cc: "'Pgsql-General(at)Postgresql(dot)Org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error restoring bytea from dump
Date: 2004-10-26 20:04:37
Message-ID: 20041026200437.GA31890@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 26, 2004 at 08:51:31PM +0200, Egyd Csaba wrote:
>
> the restoration of a dump stops at the line above.

What line above? Are you referring to "Error restoring bytea" in
the subject header? Is that the *exact* error message?

> The dump was created with pgsql 7.3.2 and I need to pump it into
> a 7.4.3 one. Should anybody tell me what the problem can be and how
> I can solve it.

Have extraneous newlines and/or carriage returns made it into the
dump? That might result in "invalid input syntax for type bytea",
which isn't the exact error you mentioned but might be what you
meant.

> (There are double apostophes [''] many times in the string - is it normal???
> Besides of the field separator [','] of course...)

http://www.postgresql.org/docs/7.4/static/sql-syntax.html#SQL-SYNTAX-STRINGS
http://www.postgresql.org/docs/7.4/static/datatype-binary.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Savard 2004-10-26 20:04:54 Arrays and constraints
Previous Message Oliver Elphick 2004-10-26 20:04:30 Re: Newbie question about escaping in a function