Re: Creating new database - Mailing list pgsql-general

From Joao Ferreira gmail
Subject Re: Creating new database
Date
Msg-id 1258558967.4631.35.camel@debj5n.critical.pt
Whole thread Raw
In response to Re: Creating new database  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Creating new database - SOLVED  (Malcolm Warren <malcolm@villeinitalia.com>)
List pgsql-general
On Wed, 2009-11-18 at 08:39 -0700, Scott Marlowe wrote:
> On Wed, Nov 18, 2009 at 8:12 AM, Joao Ferreira gmail
> <joao.miguel.c.ferreira@gmail.com> wrote:
> > I'dd suggest:
> >
> > pgdumpall --clean > dump.sql
>
> I'd think he'd be much better off with pg_dump, not pg_dumpall.

yes, agree. sorry.

joao

>
> pg_dump srcdb | psql destdb
>
> you can add -s as a pg_dump switch if all you want is the schema.


pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Creating new database
Next
From: Dave Coventry
Date:
Subject: Out of sync Primary Key Index