From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruno Wolff III <bruno@wolff.to>
Cc: Ben Kim <bkim@edsun.coe.tamu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: question re double quotes
Date: Thu, 16 Oct 2003 13:51:32 -0400
Message-ID: <12138.1066326692@sss.pgh.pa.us> (raw)
In-Reply-To: <20031016170251.GB28009@wolff.to>
References: <Pine.GSO.4.10.10310151628330.13839-100000@edsun.coe.tamu.edu>
<20031016170251.GB28009@wolff.to>
Bruno Wolff III <bruno@wolff.to> writes:
> On Wed, Oct 15, 2003 at 16:45:39 -0500,
> Ben Kim <bkim@edsun.coe.tamu.edu> 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<tab>
completes as
update MixedCase
which is wrong (no double quotes). Arguably it's my fault for not
supplying the initial quote, but
update "M<tab>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, bruno@wolff.to, bkim@edsun.coe.tamu.edu
Subject: Re: question re double quotes
In-Reply-To: <12138.1066326692@sss.pgh.pa.us>
References: <Pine.GSO.4.10.10310151628330.13839-100000@edsun.coe.tamu.edu> <20031016170251.GB28009@wolff.to> <12138.1066326692@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox