From: Peter Darley <pdarley@kinesis-cem.com>
To: Pgsql-Admin <pgsql-admin@postgresql.org>
Subject: Can't dump and restore
Date: Tue, 1 Nov 2005 10:52:20 -0800
Message-ID: <PDEOIIFFBIAABMGNJAGPIEEPDPAA.pdarley@kinesis-cem.com> (raw)
Folks,
I'm having some trouble restoring data that was dumped from my database.
When I dump out a table (pg_dump -d neo -t question > question.tbl) and try
to restore it (psql -d temp -f question.tbl) I get errors on certain rows:
"psql:question.tbl:15861: ERROR: invalid byte sequence for encoding
"UNICODE": 0xe96520". This happens when I use SQL_ASCII or UNICODE as the
encoding. I didn't try any other encodings.
When I do this with a table, it's missing the rows that throw the error.
When I do it with a full database dump, the tables that have rows that throw
the errors are empty (I assume it's just cancleing the transaction).
What is confounding me is that this is data that is currently in the
database, unless the dump is creating errors as it goes, which doesn't seem
likely. It is always the same rows as well. Why would it be rejecting data
that it obvously accepted once?
The computer is running FC4 64 SMP. The version() of PostgreSQL is: "Linux
version 2.6.13-1.1526_FC4smp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc
version 4.0.1 20050727 (Red Hat 4.0.1-5)) #1 SMP Wed Sep 28 19:28:24 EDT
2005"
Does anyone have any idea of what might be going on here? Is this likely
to be something that I can fix, or should I start taring up the directory
when I need to do backups?
Thanks,
Peter Darley
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pdarley@kinesis-cem.com
Subject: Re: Can't dump and restore
In-Reply-To: <PDEOIIFFBIAABMGNJAGPIEEPDPAA.pdarley@kinesis-cem.com>
References: <PDEOIIFFBIAABMGNJAGPIEEPDPAA.pdarley@kinesis-cem.com>
* 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