Re: pg_restore problem - Mailing list pgsql-novice

From Tom Lane
Subject Re: pg_restore problem
Date
Msg-id 22387.1029417761@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_restore problem  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Responses Re: pg_restore problem
List pgsql-novice
"Jules Alberts" <jules.alberts@arbodienst-limburg.nl> writes:
> This restores the OIDs of all my tables (as I expected), except the
> BLOBs, lo_export(241803, '/tmp/foobar') says "ERROR inv_open large
> object 241803 not found". This is a problem because I save the BLOBs
> OID as a reference in other tables. Am I doing something wrong or is
> this a known issue?

pg_restore should fix up OID references to BLOBs ... if they are in
columns of type OID (or type lo, if you've installed contrib/lo).
I suspect you stored all your OID references in integer columns?

            regards, tom lane

pgsql-novice by date:

Previous
From: sol
Date:
Subject: FATAL 1:Sorry, too many clients
Next
From: Tom Lane
Date:
Subject: Re: FATAL 1:Sorry, too many clients