X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ED1248B9E63 for ; Wed, 2 Feb 2005 21:24:43 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45151-01 for ; Wed, 2 Feb 2005 21:24:39 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2CACD8B9BC4 for ; Wed, 2 Feb 2005 21:24:40 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j12LOeHX006726; Wed, 2 Feb 2005 16:24:40 -0500 (EST) To: Bradley Miller Cc: Postgres List Subject: Re: pg_restore problem In-reply-to: <74EFBC01-7557-11D9-AC7D-000D932ED682@nuvio.com> References: <74EFBC01-7557-11D9-AC7D-000D932ED682@nuvio.com> Comments: In-reply-to Bradley Miller message dated "Wed, 02 Feb 2005 14:17:26 -0600" Date: Wed, 02 Feb 2005 16:24:39 -0500 Message-ID: <6725.1107379479@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/49 X-Sequence-Number: 20160 Bradley Miller 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