From: Aurynn Shaw <ashaw@commandprompt.com>
To: emilu@encs.concordia.ca
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql general list <pgsql-general@postgresql.org>
Subject: Re: Dump all objects under a specific schema
Date: Wed, 8 Aug 2007 14:20:29 -0600
Message-ID: <C79357D3-5173-4D4C-98EF-F5B2A2D68390@commandprompt.com> (raw)
In-Reply-To: <46BA16F8.8020503@encs.concordia.ca>
References: <46BA16F8.8020503@encs.concordia.ca>
Hi;
> Hello List,
>
> Is there a way that I can only dump all objects under a specific
> schema?
>
> I'd like to dump all tables, views' definition and data under a
> specific schema.
>
pg_dump --help says that you're looking for the -n flag, so,
pg_dump -n <your_schema> -f output.sql
Hope that helps,
Aurynn Shaw
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564 ext 103
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
ashaw@commandprompt.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ashaw@commandprompt.com, emilu@encs.concordia.ca, pgsql-general@postgresql.org
Subject: Re: Dump all objects under a specific schema
In-Reply-To: <C79357D3-5173-4D4C-98EF-F5B2A2D68390@commandprompt.com>
References: <46BA16F8.8020503@encs.concordia.ca> <C79357D3-5173-4D4C-98EF-F5B2A2D68390@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox