Search Postgresql Archives

Re: Creating new database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux