Re: Copy the database..

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: Abandoned <besturk(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Copy the database..
Date: 2007-11-06 15:09:42
Message-ID: dcc563d10711060709j69e4fe9ah33eaa4f5b7b3a741@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/3/07, Abandoned <besturk(at)gmail(dot)com> wrote:
>
> I tryed pg_dump but it is very slowly. Are there any faster way to
> copy database?

Assuming it's all happening on the same db server, yes:

psql template1
create database newdb template olddb

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-11-06 15:15:17 Re: Postgresql simple query performance question
Previous Message Christian Schröder 2007-11-06 15:07:38 Re: (Never?) Kill Postmaster?