Re: Novice Question

From: javier wilson <javier(dot)wilson(at)gmail(dot)com>
To: Michael Romagnoli <michael(at)houseind(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Novice Question
Date: 2005-03-01 22:08:32
Message-ID: da884c2005030114085f06d87b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 01 Mar 2005 16:30:19 -0500, Michael Romagnoli
<michael(at)houseind(dot)com> wrote:
>
> Sorry, I meant to ask about copying databases, not tables (including all
> data in the database as per below).

you can do a pg_dump your_database>your_database.dump.sql
and then createdb to create your new database, and finally
pgsql -f your_database.dump.sql new_database

and that's it. you should probably use -Upostgres
depending on what kind of security you use.

javier

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2005-03-01 22:17:53 Trigger email?
Previous Message Greg Patnude 2005-03-01 22:00:08 Re: Splitting tables or databases? That's the problem