Re: Dump all objects under a specific schema - Mailing list pgsql-general

From Aurynn Shaw
Subject Re: Dump all objects under a specific schema
Date
Msg-id C79357D3-5173-4D4C-98EF-F5B2A2D68390@commandprompt.com
Whole thread Raw
In response to Dump all objects under a specific schema  (Emi Lu <emilu@encs.concordia.ca>)
List pgsql-general
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



pgsql-general by date:

Previous
From: novnov
Date:
Subject: Trigger not working as expected, first row gets a null value
Next
From: Michael Glaesemann
Date:
Subject: Re: Dump all objects under a specific schema