Re: pg_dump/pg_restore - Mailing list pgsql-bugs

From Tom Lane
Subject Re: pg_dump/pg_restore
Date
Msg-id 27053.1038160644@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump/pg_restore  ("Colin Stearman" <cstearman@infofind.com>)
List pgsql-bugs
"Colin Stearman" <cstearman@infofind.com> writes:
> 1. Large objects dumped, deleted then restored do not retain their original=
>  OIDs.  Big problem as we reference their OIDs in tables.

They're not supposed to (indeed cannot).  pg_restore is supposed to arrange
for references to large-object OIDs to be updated to the new values,
however.  I believe it looks in columns of types OID and LO --- if you
stored your references in plain int columns, that was a mistake.

If you're using the -o option simply because you think you need it for
blobs, you don't need it.

> 2. The pg_restore command --list indicated no Blobs in the dump file even w=
> hen there are.  For example:

>   75; 0 BLOBS BLOBS=20

Looks like you have blobs to me: that entry wouldn't even be there,
otherwise.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Colin Stearman"
Date:
Subject: pg_dump/pg_restore
Next
From: Stephan Szabo
Date:
Subject: Re: Bug #822: Condition on rule is not respected.