"Eugene" <[EMAIL PROTECTED]> writes:
> When a datascheme contains uppercase letters in its name, pg_dump doesn't
> recognize the scheme as valid

>> pg_dump -n "Schema" -U postgres database
> pg_dump:No matching schemas were found

This is not a bug.  The problem is that there are two levels of quoting
needed: one for the shell and one for SQL.  As you wrote it, the double
quotes are stripped off by the shell and so pg_dump gets Schema, which
is case-folded per normal SQL rules.  So you need to write

        pg_dump -n '"Schema"' -U postgres database

Now, the shell eats the single quotes and passes "Schema" to pg_dump.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to