pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: Roman Neuhauser <neuhauser@sigpipe.cz>
Cc: Pgsql-sql@postgresql.org <Pgsql-sql@postgresql.org>
Cc: Pgsql-General <pgsql-general@postgresql.org>
Subject: Re: How do I copy part of table from db1 to db2 (and
Date: Wed, 31 Aug 2005 14:00:03 +0200
Message-ID: <1125489603.9456.24.camel@Panoramix> (raw)
In-Reply-To: <20050831104011.GB74859@isis.sigpipe.cz>
References: <1125482430.9456.6.camel@Panoramix>
	<20050831104011.GB74859@isis.sigpipe.cz>

On Wed, 2005-08-31 at 12:40 +0200, Roman Neuhauser wrote:
>     check these man pages: pg_dump(1), pg_restore(1), alter_table(7)

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):

jkr@Panoramix:~/postgresql$  pg_dump -t artik munttest | psql muntfinal
> output.txt
ERROR:  invalid byte sequence for encoding "UNICODE": 0xeb207a
CONTEXT:  COPY artik, line 11705, column omschrijving: "Anna v. Groot
Brittanniƫ zi prf 38.61 mm"

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?

Joost




view thread (11+ messages)  latest in thread

Message-ID: <1125489603.9456.24.camel@Panoramix>
Permalink:  ../1125489603.9456.24.camel@Panoramix/
Also on:    postgresql.org/message-id/1125489603.9456.24.camel@Panoramix

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: J.Kraaijeveld@Askesis.nl, neuhauser@sigpipe.cz, pgsql-general@postgresql.org
  Subject: Re: How do I copy part of table from db1 to db2 (and
  In-Reply-To: <1125489603.9456.24.camel@Panoramix>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox