Re: dump/restore problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrei Ivanov <andrei(dot)ivanov(at)ines(dot)ro>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dump/restore problem
Date: 2004-01-14 08:24:45
Message-ID: 1535.1074068685@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrei Ivanov <andrei(dot)ivanov(at)ines(dot)ro> writes:
> You will find more info attached.

I could not reproduce the "out of memory" failure using this information
(I got "invalid byte sequence" instead, on both of those COPY commands).
What exactly is the declaration of the tables being copied into?

> What about the invalid UNICODE data ? How can I fix it ?

It looks like your data is in a single-byte encoding, perhaps latin1 or
one of its siblings. To convert to unicode you will first have to
identify just what encoding you're really using. Then put a "set
client_encoding = whatever;" command at the top of the dump script (or
set it in postgresql.conf, if that seems easier) and you should be able
to import.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2004-01-14 08:41:52 Re: Nested transaction workaround?
Previous Message Chris Travers 2004-01-14 08:10:58 Re: Best practice? Web application: single PostgreSQL