pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: cjwhite@cisco.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem restoring large objects with pg_restore
Date: Fri, 01 Aug 2003 12:40:18 -0400
Message-ID: <16199.1059756018@sss.pgh.pa.us> (raw)
In-Reply-To: <000201c35840$32156500$5c976b80@amer.cisco.com>
References: <000201c35840$32156500$5c976b80@amer.cisco.com>

"Chris White (cjwhite)" <cjwhite@cisco.com> writes:
> Everything got restored, all the requested tables and all the large
> objects. However, all the large objects were restored with a different
> oids (some using oids of previous large objects),

That's what's expected to happen.  There is no way for pg_restore to
force them to have the same OIDs as before.

> which made all the
> references to these oids in the tables incorrect.

pg_restore is supposed to take care of updating references to restored
large objects.  Perhaps you were storing the references as the wrong
datatype (not OID or LO)?  Or perhaps you tried to do the restore in
multiple pg_restore runs?  I'm not certain, but I think pg_restore
may only look at tables restored in the current run for references to
update.  For sure it can't fix tables you haven't restored yet.

			regards, tom lane



view thread (2+ messages)

Message-ID: <16199.1059756018@sss.pgh.pa.us>
Permalink:  ../16199.1059756018@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16199.1059756018@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, cjwhite@cisco.com
  Subject: Re: Problem restoring large objects with pg_restore
  In-Reply-To: <16199.1059756018@sss.pgh.pa.us>
  References: <000201c35840$32156500$5c976b80@amer.cisco.com> <16199.1059756018@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