Re: pg_restore problem - Mailing list pgsql-sql

From Tom Lane
Subject Re: pg_restore problem
Date
Msg-id 6725.1107379479@sss.pgh.pa.us
Whole thread Raw
In response to pg_restore problem  (Bradley Miller <bmiller@nuvio.com>)
Responses Re: pg_restore problem
List pgsql-sql
Bradley Miller <bmiller@nuvio.com> writes:
> I'm attempting to restore a dump from one server to another (one is a 
> Mac and one is a Linux base, if that makes any difference).  I keep 
> running into issues like this:

> pg_restore: [archiver (db)] could not execute query: ERROR:  function 
> public.random_page_link_id_gen() does not exist

Is this a problem of items in the dump being in the wrong order (ie,
there's a forward reference to random_page_link_id_gen())?

> Any suggestions on how to get around this problem?

Use 8.0 ... or use pg_restore's -L/-l options to manually adjust the
load order.  Pre-8.0 versions of pg_dump are easily fooled if you use
ALTER to make earlier-created objects reference later-created objects.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: PL/PgSQL - returning multiple columns ...
Next
From: George Weaver
Date:
Subject: Re: PL/PgSQL - returning multiple columns ...