Re: how to replicate database - Mailing list pgsql-general

From Nigel J. Andrews
Subject Re: how to replicate database
Date
Msg-id Pine.LNX.4.21.0309111354160.21912-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to how to replicate database  (Caroline Yong <tarabas1978@yahoo.com>)
List 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



pgsql-general by date:

Previous
From: "Mattias Kregert"
Date:
Subject: Re: I need a SQL...
Next
From: Bjørn T Johansen
Date:
Subject: Re: I need a SQL...