Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9FF369FA298 for ; Sat, 2 Dec 2006 14:09:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 39585-09 for ; Sat, 2 Dec 2006 14:08:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from www01.kensystem.com (www01.kensystem.com [72.19.170.120]) by postgresql.org (Postfix) with ESMTP id 74F299F9392 for ; Sat, 2 Dec 2006 14:08:58 -0400 (AST) Received: from 192.168.0.6 by www01.kensystem.com (SMTPD); id s20061202180851.74193; Sat, 02 Dec 2006 18:08:51 Message-ID: <4571C133.1060200@kensystem.com> Date: Sat, 02 Dec 2006 11:08:51 -0700 From: Ken Johanson User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Dennis Bjorklund CC: Martijn van Oosterhout , pgsql-sql@postgresql.org Subject: Re: [HACKERS] Case Preservation disregarding case References: <200610271623.37525.beauh@bluefrogmobile.com> <1162003132.687.8.camel@pampa> <200610301928.51255.beauh@bluefrogmobile.com> <23177.1162265010@sss.pgh.pa.us> <45712E31.1030004@kensystem.com> <20061202133556.GC26365@svana.org> <457199E4.3010401@kensystem.com> <4571A3AF.6070608@zigo.dhs.org> <4571AE66.7050304@kensystem.com> <4571B392.6020303@zigo.dhs.org> In-Reply-To: <4571B392.6020303@zigo.dhs.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/29 X-Sequence-Number: 26985 Dennis Bjorklund wrote: >> So my vote would remain for having a config-option to ignore case, >> even on quoted identifiers.. > > And my vote is to not have such an option. But I'm not the one who > decide so don't worry about what I think :-) I would like to have an > option to upper case the identifiers instead of lower casing them as pg > do. The sql standard say that they should be upper cased. But as far as > I know there are no plan at the moment to add such an option either. > Some time in the future I expect it to be implemented only because it's > the standard. > > /Dennis > Ya, I thought about that - just designing with all-lower case column names. But then the column names are harder to read, unless I change over to using underscore naming. I personally cant see any benefit at all to having the DB fold case (up or down), or enforcing case sensitive identifiers. In fact I believe that if here were an option to support case insensitive (at least on a session-level) that would be largely innocuous --- beneficial even since the optimizer would now detect that someone created both a rowId, rowid, and that indicates a possible design error (the whole fail-fast notion). In one way I think that even allowing creation of a separate "rowid" and "rowId" sort of violates set theory in a 4+ GL language... a "name" in its most abstract (human) sense doesn't (shouldn't) consider the case of its characters. Only what the characters are. A rowid is also a rowId (or ROWID). Who really intentionally mixes them? (only 3-4GL *programmers* who consider all-caps to represent constants in my experience). thoughts, Ken