Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id CE6F12E0295 for ; Sun, 30 Dec 2007 21:59:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 99474-03 for ; Sun, 30 Dec 2007 21:59:50 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 674C62E0255 for ; Sun, 30 Dec 2007 21:59:55 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lBV1xr0i018928; Sun, 30 Dec 2007 20:59:53 -0500 (EST) To: "Phillip Smith" cc: "'Joshua D. Drake'" , pgsql-admin@postgresql.org Subject: Re: Restoring pg_dump Backup with psql Fails In-reply-to: <007401c84b4e$15be6270$9b0014ac@wbaus090> References: <007401c84b4e$15be6270$9b0014ac@wbaus090> Comments: In-reply-to "Phillip Smith" message dated "Mon, 31 Dec 2007 12:40:12 +1100" Date: Sun, 30 Dec 2007 20:59:52 -0500 Message-ID: <18927.1199066392@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/251 X-Sequence-Number: 27768 "Phillip Smith" writes: > I think I've found my problem: > I don't know how or when those tables were created in template1 - they're > certainly not supposed to be there or needed. Is it safe to just DROP the > tables from template1? Yeah, but what other user-created stuff (functions for instance) might be in there? You might want to drop template1 and recreate it from template0. (There's a blow-by-blow article about doing that on techdocs, IIRC.) regards, tom lane