pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bradley Miller <bmiller@nuvio.com>
Cc: Postgres List <pgsql-sql@postgresql.org>
Subject: Re: pg_restore problem
Date: Wed, 02 Feb 2005 16:24:39 -0500
Message-ID: <6725.1107379479@sss.pgh.pa.us> (raw)
In-Reply-To: <74EFBC01-7557-11D9-AC7D-000D932ED682@nuvio.com>
References: <74EFBC01-7557-11D9-AC7D-000D932ED682@nuvio.com>

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



view thread (9+ messages)  latest in thread

Message-ID: <6725.1107379479@sss.pgh.pa.us>
Permalink:  ../6725.1107379479@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6725.1107379479@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bmiller@nuvio.com
  Subject: Re: pg_restore problem
  In-Reply-To: <6725.1107379479@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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