Re: problems with pg_dumplo (was Re: backup with blobs)

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Peter Pilsl <pilsl(at)goldfisch(dot)at>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: problems with pg_dumplo (was Re: backup with blobs)
Date: 2001-04-20 08:27:11
Message-ID: 20010420102711.B23179@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 20, 2001 at 02:12:23AM +0200, Peter Pilsl wrote:
> On Wed, Apr 18, 2001 at 06:07:33PM -0400, Tom Lane wrote:
> >
> > No need to re-invent the wheel; use the attached.
> >
>
> Thanx to Tom for this great tool.

Sure :-)

> 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

What do you do before this import?

pg_dumplo -i (without -r) add *new* LO to DB and update LO oid in some
tab.attr only. The option '-r' remove old LO and import new.

Try:

pg_dumplo -a -d my_db -s /my_dump/dir

pg_dump [with relevant options for your DB] > my.dump

DROP DATABASE my_db;

CREATE DATABASE my_db;

psql my_db < my.dump

pg_dumplo -i -d my_db -s /my_dump/dir

Karel

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gyozo Papp 2001-04-20 08:35:36 static variables in functions
Previous Message postgres 2001-04-20 08:01:31 monitor postgres connect session