Re: Vacuous errors in pg_dump ... | pg_restore pipeline - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Vacuous errors in pg_dump ... | pg_restore pipeline
Date
Msg-id 5ded07e00802201112v426610f7n2ee0798b98ada27c@mail.gmail.com
Whole thread Raw
In response to Vacuous errors in pg_dump ... | pg_restore pipeline  ("Kynn Jones" <kynnjo@gmail.com>)
Responses Re: Vacuous errors in pg_dump ... | pg_restore pipeline
List pgsql-general
On 2/20/08, Kynn Jones <kynnjo@gmail.com> wrote:

> Alternatively, is there a better way to streamline the duplication of a
> database?

How about:

CREATE DATABASE newdb TEMPLATE olddb;

(don't remember the exact syntax, but it'll be in the docs for CREATE
DATABASE).  I think the 'createdb' program also has an option for
choosing the template.

pgsql-general by date:

Previous
From: cluster
Date:
Subject: Suggestions for schema design?
Next
From: intelforum@subtropolix.org
Date:
Subject: Re: Using sequences in SQL text files