Re: Excluding schema from backup

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: " \"Stéphane Schildknecht" <stephane(dot)schildknecht(at)postgresqlfr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Excluding schema from backup
Date: 2006-12-08 12:50:34
Message-ID: 20061208075034.2ef12d2c.wmoran@collaborativefusion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to "Stéphane Schildknecht" <stephane(dot)schildknecht(at)postgresqlfr(dot)org>:

> Hi all,
>
> I tried the knewly introduced feature allowing one to exclude a schema
> from a backup with pg_dump, but I got a
> really strange error :
>
> pg_dump -U postgres MYDB -N "_MYDB" gives me a dump including that schema.
>
> I then tried pg_dump -U postgres MYDB -n "_MYDB" and then got "pg_dump:
> No matching schemas were found"
>
> Dumping the only public schema works. But, by doing so, I miss some
> other schema I really need.
>
> Is there a limitation I didn't catch ?

My guess is that you're hitting case-folding issues. Try:

pg_dump -U postgres MYDB -n \"_MYDB\"

--
Bill Moran
Collaborative Fusion Inc.

wmoran(at)collaborativefusion(dot)com
Phone: 412-422-3463x4023

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tonko Racic 2006-12-08 13:29:20 localhost resolving
Previous Message Harald Fuchs 2006-12-08 12:42:33 Re: How to use outer join in update