Re: how to replicate database

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: Caroline Yong <tarabas1978(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to replicate database
Date: 2003-09-11 12:58:14
Message-ID: Pine.LNX.4.21.0309111354160.21912-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 11 Sep 2003, Caroline Yong wrote:

> Is there a way to replicate one-off(a copy of
> duplicate) of an existing Postgres database.
>
> regards,
> caroline

There's obviously the pg_dump utility (or pg_dumpall which also gets all the
global info like db users). You could also try:

createdb -T old-db new-db

as an interesting exercise, if you just want another copy in the same
cluster. I've not done that myself but I don't see why it wouldn't work,
someone else might know differently.

--
Nigel Andrews

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2003-09-11 13:02:47 Re: I need a SQL...
Previous Message Mattias Kregert 2003-09-11 12:56:16 Re: I need a SQL...