X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CB04052862 for ; Tue, 28 Jun 2005 03:10:12 -0300 (ADT) 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 31880-01 for ; Tue, 28 Jun 2005 06:10:02 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 66D8E52838 for ; Tue, 28 Jun 2005 03:10:01 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j5S69xgV084686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Jun 2005 00:10:02 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j5S69xQI018675; Tue, 28 Jun 2005 00:09:59 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j5S69xJS018674; Tue, 28 Jun 2005 00:09:59 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 28 Jun 2005 00:09:59 -0600 From: Michael Fuhr To: Paul Keyes Cc: pgsql-admin@postgresql.org Subject: Re: moving database to diff. server Message-ID: <20050628060959.GA18635@winnie.fuhr.org> References: <20050622200224.67912.qmail@web33413.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050622200224.67912.qmail@web33413.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/249 X-Sequence-Number: 18004 On Wed, Jun 22, 2005 at 04:02:24PM -0400, Paul Keyes wrote: > > I'm confused about one aspect of backing up and moving > a database to a different server. > I've used pg_dump to dump the database and moved he > resulting file to the new server, where Postgresql is > istalled and configured (as far as I know). > But I know that before I run psql on the backup I have > to create the database with something like (createdb > -T template0 dbname). How do I make that template0? template0 is created by initdb; you shouldn't have to create it manually. http://www.postgresql.org/docs/8.0/static/manage-ag-templatedbs.html -- Michael Fuhr http://www.fuhr.org/~mfuhr/