Re: pg_dump question (exclude schemas)

From: vinayak <vinpokale(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump question (exclude schemas)
Date: 2013-09-06 11:41:42
Message-ID: 1378467702221-5769872.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>I want to backup a database but exclude certain schemas with a patter.
>I have 100 schemas with the pattern: 'sch_000', 'sch_001', and so on.
>Will this work?
>$pg_dump <other_options> --exclude-schema='sch_*'
>this does not seem to exclude all schemas with this pattern ( 'sch_*' ),
>anything wrong here?
>thanks

It works fine on PostgreSQL 9.2.1.
When both -n and -N are given, the behavior is to dump just the schemas that
match at least one -n switch but no -N switches. If -N appears without -n,
then schemas matching -N are excluded from what is otherwise a normal dump.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/pg-dump-question-exclude-schemas-tp5768872p5769872.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Kane 2013-09-06 12:06:23 psql client memory usage
Previous Message 高健 2013-09-06 08:58:00 Re: My Experiment of PG crash when dealing with huge amount of data