X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2226811F6083 for ; Wed, 26 Apr 2006 01:56:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16151-10 for ; Wed, 26 Apr 2006 01:56:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from a2s5.a2hosting.com (host-209-124-50-10.a2webhosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id 887F611F6081 for ; Wed, 26 Apr 2006 01:56:03 -0300 (ADT) Received: from adsl-153-96-23.tys.bellsouth.net ([70.153.96.23] helo=[192.168.1.10]) by a2s5.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1FYc4H-0006KG-RS; Wed, 26 Apr 2006 00:56:01 -0400 In-Reply-To: <444E83EA.7030808@nqadmin.com> References: <444E83EA.7030808@nqadmin.com> Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3CD2AC11-A33B-4847-AC9F-1BF74B6EBDCA@pgedit.com> Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: Invalid UTF8 & Large Objects Date: Wed, 26 Apr 2006 00:55:47 -0400 To: dbadmin@nqadmin.com X-Mailer: Apple Mail (2.749.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/273 X-Sequence-Number: 21442 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