X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A5E10475D17 for ; Sat, 1 Feb 2003 11:36:27 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 357CE475CE7 for ; Sat, 1 Feb 2003 11:36:26 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h11GaT5u007463; Sat, 1 Feb 2003 11:36:29 -0500 (EST) To: Ian Burrell Cc: pgsql-admin@postgresql.org Subject: Re: pg_restore problem with 7.3.1 In-reply-to: <3E3B18DA.4010601@onsitetech.com> References: <3E3B18DA.4010601@onsitetech.com> Comments: In-reply-to Ian Burrell message dated "Fri, 31 Jan 2003 16:46:18 -0800" Date: Sat, 01 Feb 2003 11:36:29 -0500 Message-ID: <7462.1044117389@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/6 X-Sequence-Number: 7204 Ian Burrell writes: > ...and used tar format backup: "pg_dump -Ft -b mpmx > backup.tar". > pg_restore -C -d template1 backup.tar > Instead of creating the mpmx database, the command loaded everything > into the template1 database. I tried to replicate this, and could not: the restore went into the expected database. (But I did notice that pg_restore needed to be explicitly told -Ft, which seems less than bright of it.) Are you sure those are the exact commands you issued? Were you using the 7.3 versions of pg_dump and pg_restore? > How can I return template1 to its initial state? Drop and recreate it --- see recipe for this procedure on techdocs. Or you could just re-initdb. regards, tom lane