X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 152DBD1B555 for ; Thu, 16 Oct 2003 17:52:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 53077-05 for ; Thu, 16 Oct 2003 14:51:42 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 1E5A5D1B545 for ; Thu, 16 Oct 2003 14:51:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9GHpXuo012139; Thu, 16 Oct 2003 13:51:33 -0400 (EDT) To: Bruno Wolff III Cc: Ben Kim , pgsql-admin@postgresql.org Subject: Re: question re double quotes In-reply-to: <20031016170251.GB28009@wolff.to> References: <20031016170251.GB28009@wolff.to> Comments: In-reply-to Bruno Wolff III message dated "Thu, 16 Oct 2003 12:02:51 -0500" Date: Thu, 16 Oct 2003 13:51:32 -0400 Message-ID: <12138.1066326692@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/189 X-Sequence-Number: 10750 Bruno Wolff III writes: > On Wed, Oct 15, 2003 at 16:45:39 -0500, > Ben Kim wrote: >> I wonder if it is possible to let psql recognize Mixed-case-named >> ("LikeThisName") table names without double quotes in sql statements. > You probably don't want to create tables with mixed case names in the > first place. The real problem is that the tab-completion code doesn't work properly with quoted names. For example, if I do create table "MixedCase" (f1 int); then update M completes as update MixedCase which is wrong (no double quotes). Arguably it's my fault for not supplying the initial quote, but update "M fails to offer any completions at all. Somebody should work on this sometime. Actually, maybe all we need to do is apply quote_ident() in the tab-completion queries ... hmmm ... regards, tom lane