problems with pg_dumplo (was Re: backup with blobs)

From: Peter Pilsl <pilsl(at)goldfisch(dot)at>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: problems with pg_dumplo (was Re: backup with blobs)
Date: 2001-04-20 00:12:23
Message-ID: 20010420021222.B9719@i3.atat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Apr 18, 2001 at 06:07:33PM -0400, Tom Lane wrote:
> Peter Pilsl <pilsl(at)goldfisch(dot)at> writes:
> > I'm currently using postgreSQL 7.0.2 and have big tables with a lot of
> > blobs. pg_dump does not cover this blobs.
>
> > When my system crashes or when I want to migrate to 7.1, will a pure
> > file-backup be enough or will I have to write my own tools for backup
> > and restore of this blobs and their oid's in the corresponding tables.
>
> No need to re-invent the wheel; use the attached.
>

Thanx to Tom for this great tool. Unfortunately it does not work in my
testenvironment.
When importing the blobs again, I always get the following error:

lupo:/tmp/pgdump_lo # pg_dumplo -i -d peter -s ./ -u user -p pass
66611 blobtest lo_oid peter/blobtest/lo_oid/66611
66707 blobtest lo_oid peter/blobtest/lo_oid/66707
66867 blobtest lo_oid peter/blobtest/lo_oid/66867
<skip approx.10 lines>
70579 blobtest lo_oid peter/blobtest/lo_oid/70579
70643 blobtest lo_oid peter/blobtest/lo_oid/70643
pg_dumplo: lo_import: can't create inv object for ".//peter/blobtest/lo_oid/70643"

pg_dumplo: ROLLBACK

When I comment the 70653-blob in the index-file, the error will come
up at the next blob. When I try very often, the error will come up at
an earlier blob or later.

Splitting the indexfile and running pg_dumplo -i on each chunk solves
the problem.

Anyone has any idea ? Is there any webpage about this tool or should I
contact the author ?

thnx,
peter

--
mag. peter pilsl

phone: +43 676 3574035
fax : +43 676 3546512
email: pilsl(at)goldfisch(dot)at
sms : pilsl(at)max(dot)mail(dot)at

pgp-key available

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-04-20 00:41:14 Re: problems with pg_dumplo (was Re: backup with blobs)
Previous Message Tim Frank 2001-04-19 23:44:44 Re: MS Access 97 ODBC opens 2 connections to the backend?