From: | "Rick Seeger" <rick(at)nettheory(dot)com> |
---|---|
To: | "Patrick Hatcher" <PHatcher(at)macys(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: dump schema schema only? |
Date: | 2003-10-29 19:14:14 |
Message-ID: | HKEPLMBPEGFGAKDKKAEDAEAGFNAA.rick@nettheory.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
You can use -t to specify a table:
% pg_dump -s database -t tablename
-Rick
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Patrick
Hatcher
Sent: Wednesday, October 29, 2003 12:57 PM
To: pgsql-general(at)postgresql(dot)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(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2003-10-29 19:22:33 | Re: 7.3.5 release (was: Re: SELECT with row>32k hangs over |
Previous Message | Lada 'Ray' Lostak | 2003-10-29 19:12:38 | Re: Performace question |