pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marion McKelvie <marion@streamlet.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: restoring large objects
Date: Wed, 07 Apr 2004 02:07:57 -0400
Message-ID: <6115.1081318077@sss.pgh.pa.us> (raw)
In-Reply-To: <MPEMKONPODHGLICHEKEGCEIOCOAA.marion@streamlet.co.uk>
References: <MPEMKONPODHGLICHEKEGCEIOCOAA.marion@streamlet.co.uk>

"Marion McKelvie" <marion@streamlet.co.uk> 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



view thread (6+ messages)  latest in thread

Message-ID: <6115.1081318077@sss.pgh.pa.us>
Permalink:  ../6115.1081318077@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6115.1081318077@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, marion@streamlet.co.uk
  Subject: Re: restoring large objects
  In-Reply-To: <6115.1081318077@sss.pgh.pa.us>
  References: <MPEMKONPODHGLICHEKEGCEIOCOAA.marion@streamlet.co.uk> <6115.1081318077@sss.pgh.pa.us>

* 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