pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5751: pg_restore does not work correctly with BLOBs
2+ messages / 2 participants
[nested] [flat]

* BUG #5751: pg_restore does not work correctly with BLOBs
@ 2010-11-12 14:19  Michael Feldmann <michael.feldmann@uni-muenster.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Michael Feldmann @ 2010-11-12 14:19 UTC (permalink / raw)
  To: pgsql-bugs


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #5751: pg_restore does not work correctly with BLOBs
@ 2010-11-12 22:17  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Michael Feldmann <michael.feldmann@uni-muenster.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2010-11-12 22:17 UTC (permalink / raw)
  To: Michael Feldmann <michael.feldmann@uni-muenster.de>; +Cc: pgsql-bugs

"Michael Feldmann" <michael.feldmann@uni-muenster.de> writes:
> [ pg_dump -c doesn't delete BLOBs ]

This appears to be fixed in 9.0.  I fear it's impractical to do anything
about it before that, because pg_dump didn't treat BLOBs as first-class
objects before 9.0.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-11-12 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-12 14:19 BUG #5751: pg_restore does not work correctly with BLOBs Michael Feldmann <michael.feldmann@uni-muenster.de>
2010-11-12 22:17 ` Tom Lane <tgl@sss.pgh.pa.us>

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