Re: BLOBs, pg_dump & pg_restore - Mailing list pgsql-general

From Tom Lane
Subject Re: BLOBs, pg_dump & pg_restore
Date
Msg-id 26879.1065104329@sss.pgh.pa.us
Whole thread Raw
In response to Re: BLOBs, pg_dump & pg_restore  (Howard Lowndes <lannet@lannet.com.au>)
List pgsql-general
Howard Lowndes <lannet@lannet.com.au> writes:
> When you dump a database with the BLOBs, even with the -c option, and then
> restore that database again with the -c option, you get double the BLOBs.
> The original BLOBs are there as are the new copies, and the cross
> referenced oids are updated.

Yeah.  I don't believe "-c" causes anything much to be done with BLOBs.
It would be fairly risky to try, since the premise of "-c" is that you
don't want the *whole* database wiped out, only the objects you are
replacing.  I'd worry about zapping BLOBs that are still referenced
elsewhere ...

            regards, tom lane

pgsql-general by date:

Previous
From: Petr Bravenec
Date:
Subject: return next in recursive function
Next
From: Stephan Szabo
Date:
Subject: Re: return next in recursive function