Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 0C44A9FB27F for ; Tue, 28 Nov 2006 15:49:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 63610-06 for ; Tue, 28 Nov 2006 15:49:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id 676209FB273 for ; Tue, 28 Nov 2006 15:49:38 -0400 (AST) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Tue, 28 Nov 2006 13:49:37 -0600 Message-Id: <456C3E6A.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Date: Tue, 28 Nov 2006 13:49:31 -0600 From: "Kevin Grittner" To: "Tom Lane" Cc: Subject: Re: pg_dump -t broken for mixed case table names in References: <456C395A.EE98.0025.0@wicourts.gov><456C395A.EE98.0025.0@wicourts.gov> <5470.1164742997@sss.pgh.pa.us> In-Reply-To: <5470.1164742997@sss.pgh.pa.us> 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-Archive-Number: 200611/922 X-Sequence-Number: 94384 Thanks much; it might have been a while before I tried that nested quoting technique. I think it's worth documenting. Would you like me to try to put a doc patch together, or would it be better for someone else to do so? -Kevin >>> Tom Lane 11/28/06 1:43 PM >>> "Kevin Grittner" writes: > Unless I'm missing something, pg_dump is not allowing selective dump of > a table where the table name is mixed case. You do it like this: $ pg_dump - s - t '"DbTranLogRecord"' dtr A bit ugly but the conflict between shell and SQL quoting rules sometimes forces us into compromises :- ( Perhaps it's worth having an example for this in the pg_dump man page? regards, tom lane