Re: dump schema schema only?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Patrick Hatcher" <PHatcher(at)macys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dump schema schema only?
Date: 2003-10-29 20:38:21
Message-ID: 20051.1067459901@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Patrick Hatcher" <PHatcher(at)macys(dot)com> writes:
> I have a development server where I, well, do my development. Occasionally,
> I will create a new schema within an existing database that I would like to
> use on my production machine. I know that doing a pg_dump -s <database>
> > somefile.sql will dump the entire schema of the database, but is there a
> way to export only schema X from the database?

7.4's pg_dump has an option to dump the contents of just one schema.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Chapman 2003-10-29 20:59:25 Re: Database design question: ugliness or referential integrity?
Previous Message Marc G. Fournier 2003-10-29 19:22:33 Re: 7.3.5 release (was: Re: SELECT with row>32k hangs over