pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Chuck McDevitt <cmcdevitt@greenplum.com>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: beau hargis <beauh@bluefrogmobile.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [SQL] Case Preservation disregarding case
Date: Tue, 14 Nov 2006 21:42:33 +0000
Message-ID: <1163540553.27956.109.camel@silverbirch.site> (raw)
In-Reply-To: <16897.1162482685@sss.pgh.pa.us>
References: <200610271623.37525.beauh@bluefrogmobile.com>
	<1162003132.687.8.camel@pampa>
	<200610301928.51255.beauh@bluefrogmobile.com>
	<23177.1162265010@sss.pgh.pa.us>
	<EB48EBF3B239E948AC1E3F3780CF8F88012F88DD@MI8NYCMAIL02.Mi8.com>
	<24861.1162276496@sss.pgh.pa.us>
	<EB48EBF3B239E948AC1E3F3780CF8F88012F89F8@MI8NYCMAIL02.Mi8.com>
	<20061031101314.R83230@megazone.bigpanda.com>
	<EB48EBF3B239E948AC1E3F3780CF8F88012F8A53@MI8NYCMAIL02.Mi8.com>
	<14059.1162363105@sss.pgh.pa.us>
	<EB48EBF3B239E948AC1E3F3780CF8F88012F8CD6@MI8NYCMAIL02.Mi8.com>
	<1162463264.3587.281.camel@silverbirch.site>
	<16897.1162482685@sss.pgh.pa.us>

On Thu, 2006-11-02 at 10:51 -0500, Tom Lane wrote:
> "Simon Riggs" <simon@2ndquadrant.com> writes:
> > We have namespaces to differentiate between two sources of object names,
> > so anybody who creates a schema where MyColumn is not the same thing as
> > myColumn is not following sensible rules for conceptual distance.
> 
> I'd agree that that is not a good design practice, but the fact remains
> that they *are* different per spec.
> 
> > Would be better to make this behaviour a userset
> > switchable between the exactly compliant and the more intuitive.
> 
> That's certainly not happening --- if you make any changes in the
> semantics of equality of type name, it would have to be frozen no
> later than initdb time, for exactly the same reasons we freeze
> locale then (hint: index ordering).

[Re-read all of this after Bruce's post got me thinking.]

My summary of the thread, with TODO items noted:

1. PostgreSQL doesn't follow the spec, but almost does, with regard to
comparison of unquoted and quoted identifiers. DB2 does this per spec.

2. TODO: We could follow the spec, but it would need an initdb option;
some non-SQL:2003 standard PostgreSQL programs would not work as they do
now. This is considered a minor, low priority item, though.

3. TODO: We could set column headers better if we wanted to (rather
than ?column? we could use e.g. Sum_ColumnName etc)

-- 
  Simon Riggs             
  EnterpriseDB   http://www.enterprisedb.com





view thread (29+ messages)  latest in thread

Message-ID: <1163540553.27956.109.camel@silverbirch.site>
Permalink:  ../1163540553.27956.109.camel@silverbirch.site/
Also on:    postgresql.org/message-id/1163540553.27956.109.camel@silverbirch.site

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: simon@2ndquadrant.com, tgl@sss.pgh.pa.us, cmcdevitt@greenplum.com, sszabo@megazone.bigpanda.com, beauh@bluefrogmobile.com, pgsql-hackers@postgresql.org
  Subject: Re: [SQL] Case Preservation disregarding case
  In-Reply-To: <1163540553.27956.109.camel@silverbirch.site>

* 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