From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl> |
Cc: | Roman Neuhauser <neuhauser(at)sigpipe(dot)cz>, "Pgsql-sql(at)postgresql(dot)org" <Pgsql-sql(at)postgresql(dot)org>, Pgsql-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [SQL] How do I copy part of table from db1 to db2 (and |
Date: | 2005-08-31 14:29:49 |
Message-ID: | 1677.1125498589@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl> writes:
> I am afraid that the problem is more complex. The original database
> (which is created with SQL_ASCII) contains invalid byte sequences in
> some columns (target database created with UNICODE):
There is no magic bullet to make bad data better. If the original data
is all in a specific encoding that happens not to be unicode, then you
can get Postgres to translate it for you --- just edit the dump file and
change CLIENT_ENCODING to the real original encoding before reloading.
If, as seems more likely, there's a mishmash of different encodings then
you are in for some pain. At the minimum you'll have to separate out
the rows that are in each encoding so you can pass them through
different conversion processes.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Joost Kraaijeveld | 2005-08-31 15:02:17 | Re: [SQL] How do I copy part of table from db1 to db2 |
Previous Message | Tom Lane | 2005-08-31 14:20:04 | Re: or kills performance |
From | Date | Subject | |
---|---|---|---|
Next Message | Joost Kraaijeveld | 2005-08-31 15:02:17 | Re: [SQL] How do I copy part of table from db1 to db2 |
Previous Message | Charley L. Tiggs | 2005-08-31 14:27:22 | Re: psql commandline |