Re: pg_restore problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lonni J Friedman <lfriedman(at)vasoftware(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_restore problem
Date: 2003-03-06 17:13:45
Message-ID: 16782.1046970825@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lonni J Friedman <lfriedman(at)vasoftware(dot)com> writes:
> pg_restore: [archiver (db)] could not execute query: ERROR: Relation
> "artifact_file" does not exist

> My guess is that the problem is that artifact_file has not yet been
> restored from the dump (its further along), however I don't understand how
> to compensate for this problem.

You need to force pg_restore to load the database objects in a safe
order. I haven't done this recently, but basically you make a listing
of the archive's table of contents (TOC), rearrange it with a text
editor, and use that file as a control file for pg_restore. See the
pg_restore man page.

Eventually this should be automated better :-(

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2003-03-06 17:46:05 replicating DDL statements
Previous Message Bruce Momjian 2003-03-06 17:05:35 Re: 7.4?