From: Michael Feldmann <michael.feldmann@uni-muenster.de>
To: pgsql-bugs@postgresql.org
Subject: BUG #5751: pg_restore does not work correctly with BLOBs
Date: Fri, 12 Nov 2010 14:19:01 GMT
Message-ID: <201011121419.oACEJ1Yg066851@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5751
Logged by: Michael Feldmann
Email address: michael.feldmann@uni-muenster.de
PostgreSQL version: 8.4.5
Operating system: Ubuntu
Description: pg_restore does not work correctly with BLOBs
Details:
I start with a database containing only a BLOB.
Then I dump this database with pg_dump -Fc
Then I create a new database testblob
and restore the dump with the command
pg_restore -v -c -d testblob -O blob.dump
This works as expected.
But if I try restore the same dump again
with the same command I get the error message
pg_restore: restoring BLOBS
pg_restore: [archiver] could not create large object 25213
pg_restore: *** aborted because of error
If I first drop the database testblob and then
create it again everything works fine.
It seems that pg_restore does not clean the
old database completely, despite the -c flag.
We ran into this problem when writing an
automated mirroring script.
Best Regards
Michael Feldmann
---
ZIV, University of Muenster, Germany
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-bugs@postgresql.org
Cc: michael.feldmann@uni-muenster.de
Subject: Re: BUG #5751: pg_restore does not work correctly with BLOBs
In-Reply-To: <201011121419.oACEJ1Yg066851@wwwmaster.postgresql.org>
References: <201011121419.oACEJ1Yg066851@wwwmaster.postgresql.org>
* 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