Re: BUG #5847: pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for encoding "UTF8": 0x96

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: BUG #5847: pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for encoding "UTF8": 0x96
Дата
Msg-id AANLkTi=OMxYVsUwS2spLOPAaFjPpH3h7=o3s2e+Kg-2m@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #5847: pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for encoding "UTF8": 0x96  ("Vijayakumar" <mails4vijayakumar@gmail.com>)
Список pgsql-bugs
On Mon, Jan 24, 2011 at 11:18 PM, Vijayakumar
<mails4vijayakumar@gmail.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference: =A0 =A0 =A05847
> Logged by: =A0 =A0 =A0 =A0 =A0Vijayakumar
> Email address: =A0 =A0 =A0mails4vijayakumar@gmail.com
> PostgreSQL version: 8.2
> Operating system: =A0 windows
> Description: =A0 =A0 =A0 =A0pg_restore: [archiver (db)] COPY failed: ERRO=
R: =A0invalid
> byte sequence for encoding "UTF8": 0x96
> Details:
>
> while restoring my database i am getting the error as
>
>
>
> D:\EnterpriseDB\Postgres\8.2\bin\pg_restore.exe -i -h localhost -p 5432 -U
> postgres -d asasas -v "E:\backupcsv\erode.backup"
> pg_restore: connecting to database for restore
> pg_restore: creating TABLE generalledgermaster_erode
> pg_restore: restoring data for table "generalledgermaster_erode"
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 1624; 0 121663 TABLE DATA
> generalledgermaster_erode postgres
> pg_restore: [archiver (db)] COPY failed: ERROR: =A0invalid byte sequence =
for
> encoding "UTF8": 0x96
> HINT: =A0This error can also happen if the byte sequence does not match t=
he
> encoding expected by the server, which is controlled by "client_encoding".
> CONTEXT: =A0COPY generalledgermaster_erode, line 374
> pg_restore: creating CONSTRAINT generalledgermaster_erode_pkey
> pg_restore: setting owner and privileges for TABLE
> generalledgermaster_erode
> pg_restore: setting owner and privileges for CONSTRAINT
> generalledgermaster_erode_pkey
> WARNING: errors ignored on restore: 1
>
> Process returned exit code 1.

You haven't provided a whole lot of information to go on, here - but
apparently you have some invalidly encoded data in your dump file.
Older versions of PostgreSQL weren't as strict about preventing such
data from creeping into the database, which can lead to problems of
this type.  Your best bet is to probably edit the dump before
restoring it.

--=20
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5844: maverick
Следующее
От: "Naoya Anzai"
Дата:
Сообщение: BUG #5856: pg_attribute.attinhcount is not correct.