Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1A24164FCD4 for ; Wed, 27 Aug 2008 11:53:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48632-06 for ; Wed, 27 Aug 2008 11:53:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3EF5764FCD5 for ; Wed, 27 Aug 2008 11:53:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m7RErMaQ023744; Wed, 27 Aug 2008 10:53:22 -0400 (EDT) To: "Phoenix Kiula" cc: "PG-General Mailing List" Subject: Re: Dumping/Restoring with constraints? In-reply-to: References: <22708.1219845242@sss.pgh.pa.us> <23571.1219848176@sss.pgh.pa.us> Comments: In-reply-to "Phoenix Kiula" message dated "Wed, 27 Aug 2008 22:51:42 +0800" Date: Wed, 27 Aug 2008 10:53:22 -0400 Message-ID: <23743.1219848802@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/954 X-Sequence-Number: 136784 "Phoenix Kiula" writes: > Then I tried this: > $ pg_restore -h localhost mydb.sql > This tells me: > pg_restore: [archiver] input file does not appear to be a valid archive No, you were right the first time: just feed the dump script to psql. regards, tom lane