Re: dump schema schema only? - Mailing list pgsql-general

From Rick Seeger
Subject Re: dump schema schema only?
Date
Msg-id HKEPLMBPEGFGAKDKKAEDAEAGFNAA.rick@nettheory.com
Whole thread Raw
In response to dump schema schema only?  ("Patrick Hatcher" <PHatcher@macys.com>)
List pgsql-general
You can use -t to specify a table:

% pg_dump -s database -t tablename


-Rick



-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org]On Behalf Of Patrick
Hatcher
Sent: Wednesday, October 29, 2003 12:57 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] dump schema schema only?


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?

TIA
Patrick Hatcher



---------------------------(end of
broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)




pgsql-general by date:

Previous
From: "Lada 'Ray' Lostak"
Date:
Subject: Re: Performace question
Next
From: "Marc G. Fournier"
Date:
Subject: Re: 7.3.5 release (was: Re: SELECT with row>32k hangs over