Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 48C1364FCDA for ; Wed, 27 Aug 2008 11:51:53 -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 47018-03 for ; Wed, 27 Aug 2008 11:51:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 8CD4164FCD5 for ; Wed, 27 Aug 2008 11:51:45 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id c7so1165699nfi.23 for ; Wed, 27 Aug 2008 07:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=VNmlitqRqERGsvJuxTSSdQRr75PXa5xd8GM5KVujG44=; b=VX0bgwj1t1GceeEjgl5NEGOveB9tcIIvtcWxINXv6q/SyBQDk4U18BXtM7WvxJ3+Ku n0UAM4LQ7vPjyEzL7zQ5dc4l+60wVjL8TAZ25HCpl4YHuRiBq7NvpnFgd/tqIfDBMtY1 agpvepleB/aEOVIz59uEZBVMq605ZiWpeY+MI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a1SPnPB9CZhXRMhU5+ktwbahcdS6OGydw7h5N1Ye6T5dfY87jTH/qTjvwgGBnBp59K l411rKe+jWVVDDacufgEKOPeV0xYnbKHnzdvNvIxqTkFQGHS9DGRsUxh8wSaZi4i//8e k+laImKyiZyZs7M3pPmK5BDNJOJZCpoP+Pz9k= Received: by 10.210.36.8 with SMTP id j8mr5377ebj.168.1219848702300; Wed, 27 Aug 2008 07:51:42 -0700 (PDT) Received: by 10.210.130.1 with HTTP; Wed, 27 Aug 2008 07:51:42 -0700 (PDT) Message-ID: Date: Wed, 27 Aug 2008 22:51:42 +0800 From: "Phoenix Kiula" To: "Tom Lane" Subject: Re: Dumping/Restoring with constraints? Cc: "PG-General Mailing List" In-Reply-To: <23571.1219848176@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <22708.1219845242@sss.pgh.pa.us> <23571.1219848176@sss.pgh.pa.us> 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/953 X-Sequence-Number: 136783 On Wed, Aug 27, 2008 at 10:42 PM, Tom Lane wrote: > For pg_dumpall, you shouldn't even have created the > databases, just start from a virgin installation. Should I have CREATEd the db at least without the table structure? I dropped the database locally. Entirely. Gone. 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 What gives?