Re: Error restoring bytea from dump

From: Együd Csaba (Freemail) <csegyud(at)freemail(dot)hu>
To: 'Michael Fuhr' <mike(at)fuhr(dot)org>
Cc: "'Pgsql-General(at)Postgresql(dot)Org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error restoring bytea from dump
Date: 2004-10-27 07:02:31
Message-ID: 0I68001R3E874A@mail.vnet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi again,

Another mistake of mine ... :) The real problem was that I used a Windows
based archiver (PowerArchiver) to unzip the gz file which - for some reasons
??? - chunked the long lines at aproximately every 16K. Using gunzip the
problem oozed away. :)

Bye,
-- Csaba

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Michael Fuhr
Sent: Tuesday, October 26, 2004 10:05 PM
To: Egy?d Csaba (Freemail)
Cc: 'Pgsql-General(at)Postgresql(dot)Org'
Subject: Re: [GENERAL] Error restoring bytea from dump

On Tue, Oct 26, 2004 at 08:51:31PM +0200, Együd 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/

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 2004.10.15.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 2004.10.15.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2004-10-27 07:27:23 Re: Bug: 8.0 beta1 either view optimization or pgdump/pgrestore
Previous Message Thomas Hallgren 2004-10-27 07:00:58 Re: Comment on timezone and interval types