Re: Creating new database

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Joao Ferreira gmail <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com>
Cc: Malcolm Warren <malcolm(at)villeinitalia(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Creating new database
Date: 2009-11-18 15:39:09
Message-ID: dcc563d10911180739r4d987f52n8c47954f884a1459@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

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 Joao Ferreira gmail 2009-11-18 15:42:47 Re: Creating new database
Previous Message Malcolm Warren 2009-11-18 15:22:37 [Fwd: Re: Creating new database]