X-Original-To: pgsql-advocacy-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 15E15D1B470; Fri, 23 Apr 2004 13:46:24 -0300 (ADT) 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 85669-08; Fri, 23 Apr 2004 13:46:18 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 697E7D1C9ED; Fri, 23 Apr 2004 13:46:17 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 97CE3353C5; Fri, 23 Apr 2004 09:46:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 95E8A353BE; Fri, 23 Apr 2004 09:46:18 -0700 (PDT) Date: Fri, 23 Apr 2004 09:46:18 -0700 (PDT) From: Stephan Szabo To: Robert Treat Cc: Dennis Bjorklund , Shachar Shemesh , Bruce Momjian , PostgreSQL-development , PostgreSQL advocacy Subject: Re: [HACKERS] What can we learn from MySQL? In-Reply-To: <1082735128.22969.1106.camel@camel> Message-ID: <20040423094236.J17459@megazone.bigpanda.com> References: <1082735128.22969.1106.camel@camel> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/157 X-Sequence-Number: 4129 On Fri, 23 Apr 2004, Robert Treat wrote: > On Fri, 2004-04-23 at 05:22, Dennis Bjorklund wrote: > > On Fri, 23 Apr 2004, Shachar Shemesh wrote: > > > > > When I ask about non-standard complience of Pg (turning unquoted > > > identifiers to lowercase instead of uppercase, violating the SQL > > > standard, and requring an expensive rewrite of clients), and I get the > > > answer "uppercase is ugly", I think something is wrong. > > > > I would love if someone fixed pg so that one can get the standard > > behaviour. It would however have to be a setting that can be changed so we > > are still backward compatible. > > > > > that even if I write a patch to start migration, I'm not likely to get > > > it in. > > > > Just changing to uppercase would break old code so such a patch should not > > just be commited. But would people stop a patch that is backward > > compatible (in the worst case a setting during initdb)? I'm not so sure > > they will. > > > > I know this to be true, but don't fully understand it... if our default > behavior is to fold lower, and we change it to just fold upper... then > in theory this shouldn't break anything since what used to be folder > lower will now simply be folder upper. the only people who will have a > problem are those who quote on one end but not the other, which is bad > practice anyways... so i would say if your serious about it, make the > patch as GUC "case_folding" for upper or lower and get a taste for what > breaks inside the db. I've tried just changing the parser to unconditionally casefold to upper. First thing that happens is that initdb breaks. In addition, you have potential issues with comparisons against the catalog's versions of standard functions as such if you allow the case folding to be changed after the catalogs are setup.