From: Michael Fuhr <mike@fuhr.org>
To: Paul Keyes <paul_s_keyes@yahoo.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: moving database to diff. server
Date: Tue, 28 Jun 2005 00:09:59 -0600
Message-ID: <20050628060959.GA18635@winnie.fuhr.org> (raw)
In-Reply-To: <20050622200224.67912.qmail@web33413.mail.mud.yahoo.com>
References: <20050622200224.67912.qmail@web33413.mail.mud.yahoo.com>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mike@fuhr.org, paul_s_keyes@yahoo.ca
Subject: Re: moving database to diff. server
In-Reply-To: <20050628060959.GA18635@winnie.fuhr.org>
References: <20050622200224.67912.qmail@web33413.mail.mud.yahoo.com> <20050628060959.GA18635@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox