pg_dump question (exclude schemas)

From: Jay Vee <jvsrvcs(at)gmail(dot)com>
To: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: pg_dump question (exclude schemas)
Date: 2013-08-28 19:30:29
Message-ID: CADq_mb985cqVpqKPcag7j62dsnCzwmcz-FA-GKjP06G2LEGYXg@mail.gmail.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

J.V.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-08-28 21:44:08 Re: pg_dump question (exclude schemas)
Previous Message Filip Rembiałkowski 2013-08-28 18:26:59 9.0 hot standby, consistent recovery state question