Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2AA381337B4E for ; Wed, 24 Nov 2010 11:05:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 66995-10 for ; Wed, 24 Nov 2010 15:04:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 7E8401337B34 for ; Wed, 24 Nov 2010 11:04:58 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 24 Nov 2010 09:04:58 -0600 Message-Id: <4CECD5300200002500037DF0@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 24 Nov 2010 09:04:48 -0600 From: "Kevin Grittner" To: "Heikki Linnakangas" , "Cristiano" Cc: Subject: Re: BUG #5765: pg_dump fail to find upper case table name References: <201011241134.oAOBY8YQ016066@wwwmaster.postgresql.org> <4CED12E2.8030902@enterprisedb.com> In-Reply-To: <4CED12E2.8030902@enterprisedb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/153 X-Sequence-Number: 28733 Heikki Linnakangas wrote: > Manual says (at the bottom of > http://www.postgresql.org/docs/8.4/static/app-pgdump.html): > >> To specify an upper-case or mixed-case name in -t and related >> switches, you need to double-quote the name; else it will be >> folded to lower case (see Patterns). But double quotes are >> special to the shell, so in turn they must be quoted. Thus, to >> dump a single table with a mixed-case name, you need something >> like >> >> $ pg_dump -t '"MixedCaseName"' mydb > mytab.sql Perhaps some of that should be moved up to the definition of the -t switch? It wouldn't seem too out of place to me to put it somewhere near this sentence: | When using wildcards, be careful to quote the pattern if needed to | prevent the shell from expanding the wildcards. While examples are useful, information which is only provided there is easily missed when someone goes to read up on a particular switch. -Kevin