X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2694BD1B515 for ; Wed, 7 Apr 2004 03:07:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 23956-08 for ; Wed, 7 Apr 2004 03:07:58 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 71BECD1BB93 for ; Wed, 7 Apr 2004 03:07:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3767v6r006116; Wed, 7 Apr 2004 02:07:57 -0400 (EDT) To: "Marion McKelvie" Cc: pgsql-admin@postgresql.org Subject: Re: restoring large objects In-reply-to: References: Comments: In-reply-to "Marion McKelvie" message dated "Tue, 06 Apr 2004 16:46:11 +0100" Date: Wed, 07 Apr 2004 02:07:57 -0400 Message-ID: <6115.1081318077@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/101 X-Sequence-Number: 13074 "Marion McKelvie" writes: > Many thanks - you're right, the references are stored (by the application > using the database) in a column of type text. Yuck :-(. A possible solution is to dump the schema and data separately (schema in a plain text dump, data in an -Fc or -Ft dump since plain text doesn't support dumping LOs). Then manually edit the schema file to change the column data type to "oid". Then load. I honestly am not sure that this will work cleanly, but it's worth trying --- and if it doesn't work, please let me know where it goes wrong. regards, tom lane