Re: Creating new database

From: Joao Ferreira gmail <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Creating new database
Date: 2009-11-18 15:42:47
Message-ID: 1258558967.4631.35.camel@debj5n.critical.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tech 2010 2009-11-18 15:48:14 Re: vacuumdb: vacuuming of database "xy" failed: PANIC: corrupted item pointer: 19227
Previous Message Scott Marlowe 2009-11-18 15:39:09 Re: Creating new database