Re: [SQL] [GENERAL] How do I copy part of table from db1 to db2 (and

2005-08-31 Thread Tom Lane
Joost Kraaijeveld <[EMAIL PROTECTED]> 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 th

Re: [SQL] [GENERAL] How do I copy part of table from db1 to db2 (and

2005-08-31 Thread Thomas Pundt
On Wednesday 31 August 2005 14:09, Thomas Pundt wrote: | maybe the "recode" utility can help then? Something like | | pg_dump -t artik munttest | recode latin1..utf | psql muntfinal sorry to follow up on myself, but that command should read pg_dump -t artik munttest | recode latin1..utf8 | ps

Re: [SQL] [GENERAL] How do I copy part of table from db1 to db2 (and

2005-08-31 Thread Thomas Pundt
On Wednesday 31 August 2005 14:00, Joost Kraaijeveld wrote: | So I cannot dump/restore/alter table. I was hoping that piping the text | from stdout to psql that a valid conversion to unicode would take place | but apparently that is not the case. | | Any other ideas? maybe the "recode" utility can