Re: Invalid UTF8 & Large Objects

From: John DeSoi <desoi(at)pgedit(dot)com>
To: dbadmin(at)nqadmin(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Invalid UTF8 & Large Objects
Date: 2006-04-26 04:55:47
Message-ID: 3CD2AC11-A33B-4847-AC9F-1BF74B6EBDCA@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Apr 25, 2006, at 4:17 PM, Prasanth wrote:

> But then my problem is I have to do a text dump to use iconv in which
> case I will loose the large objects.
> I tried using the iconv on the dump generated using the -Fc option and
> then when I try to restore that I am getting the following error
> pg_restore: [archiver] entry ID 0 out of range -- perhaps a corrupt
> TOC

-Fc produces a binary format, so you can't use iconv on it. One
option might be to write a script to export your large objects, dump
text only and fix with iconv, then reload the database and import the
large objects.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message sandhya 2006-04-26 06:52:09 problem with .asp and.js files pls..help me
Previous Message Jason Minion 2006-04-25 21:47:53 Re: dbsize & pg_dump