Re: Simpler dump?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ted Byers <r(dot)ted(dot)byers(at)rogers(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Simpler dump?
Date: 2007-12-10 05:48:19
Message-ID: 27447.1197265699@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ted Byers <r(dot)ted(dot)byers(at)rogers(dot)com> writes:
> Is there a way to tell pg_dump to just dump the SQL
> statements required to create the tables, sequences,
> indeces, keys, &c.?

pg_dump -s ?

> I DON'T need to restore or
> recreate things like users, or most other kinds of DB
> objects. Just routine DDL statements.

pg_dump doesn't try to recreate users, and to most people "DDL" would
include the creation commands for any type of DB object whatsoever.
Your demarcation between stuff you want and stuff you don't seems far
too vaguely stated.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Ozen Akyurek 2007-12-10 09:19:05 copy a large table raises out of memory exception
Previous Message Uwe C. Schroeder 2007-12-10 05:44:44 Re: Simpler dump?