pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Dump all objects under a specific schema
4+ messages / 4 participants
[nested] [flat]

* Dump all objects under a specific schema
@ 2007-08-08 19:18  Emi Lu <emilu@encs.concordia.ca>
  0 siblings, 3 replies; 4+ messages in thread

From: Emi Lu @ 2007-08-08 19:18 UTC (permalink / raw)
  To: pgsql-jdbc; pgsql general list <pgsql-general@postgresql.org>

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.


Thank you!



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Dump all objects under a specific schema
@ 2007-08-08 20:20  Aurynn Shaw <ashaw@commandprompt.com>
  parent: Emi Lu <emilu@encs.concordia.ca>
  2 siblings, 0 replies; 4+ messages in thread

From: Aurynn Shaw @ 2007-08-08 20:20 UTC (permalink / raw)
  To: emilu@encs.concordia.ca; +Cc: pgsql-jdbc; pgsql general list <pgsql-general@postgresql.org>

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Dump all objects under a specific schema
@ 2007-08-08 20:21  Kris Jurka <books@ejurka.com>
  parent: Emi Lu <emilu@encs.concordia.ca>
  2 siblings, 0 replies; 4+ messages in thread

From: Kris Jurka @ 2007-08-08 20:21 UTC (permalink / raw)
  To: Emi Lu <emilu@encs.concordia.ca>; +Cc: pgsql-jdbc



On Wed, 8 Aug 2007, Emi Lu wrote:

> Is there a way that I can only dump all objects under a specific schema?
>

This questions has nothing to do with Java or JDBC, so cross posting it to 
this list is inappropriate.  Please only send Java related questions here.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Dump all objects under a specific schema
@ 2007-08-08 20:24  Michael Glaesemann <grzm@seespotcode.net>
  parent: Emi Lu <emilu@encs.concordia.ca>
  2 siblings, 0 replies; 4+ messages in thread

From: Michael Glaesemann @ 2007-08-08 20:24 UTC (permalink / raw)
  To: emilu@encs.concordia.ca; +Cc: pgsql-jdbc; pgsql general list <pgsql-general@postgresql.org>


On Aug 8, 2007, at 14:18 , Emi Lu wrote:

> Is there a way that I can only dump all objects under a specific  
> schema?

Have you checked the pg_dump documentation?

http://www.postgresql.org/docs/8.2/interactive/app-pgdump.html

In particular, the -n flag might interest you.

Michael Glaesemann
grzm seespotcode net





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2007-08-08 20:24 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-08-08 19:18 Dump all objects under a specific schema Emi Lu <emilu@encs.concordia.ca>
2007-08-08 20:20 ` Aurynn Shaw <ashaw@commandprompt.com>
2007-08-08 20:21 ` Kris Jurka <books@ejurka.com>
2007-08-08 20:24 ` Michael Glaesemann <grzm@seespotcode.net>

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