Re: Novice Question - Mailing list pgsql-general

From javier wilson
Subject Re: Novice Question
Date
Msg-id da884c2005030114085f06d87b@mail.gmail.com
Whole thread Raw
In response to Re: Novice Question  (Michael Romagnoli <michael@houseind.com>)
Responses Re: Novice Question
List pgsql-general
On Tue, 01 Mar 2005 16:30:19 -0500, Michael Romagnoli
<michael@houseind.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

pgsql-general by date:

Previous
From: "Greg Patnude"
Date:
Subject: Re: Splitting tables or databases? That's the problem
Next
From: CSN
Date:
Subject: Trigger email?