Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Case Preservation disregarding case

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,beau hargis <beauh(at)bluefrogmobile(dot)com>, pgsql-sql(at)postgresql(dot)org,pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Case Preservation disregarding case
Date: 2006-10-31 18:22:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-sql
On Tue, 31 Oct 2006, Chuck McDevitt wrote:

> We treated quoted identifiers as case-specific, as the spec requires.
> In the catalog, we stored TWO columns... The column name with case
> converted as appropriate (as PostgreSQL already does), used for looking
> up the attribute,
> And a second column, which was the column name with the case exactly as
> entered by the user.

Wouldn't using that second column's value tend to often violate 5.2SR10
(at least that's the reference item in SQL92)? AFAICT, that rule basically
says that the regular identifier is equivalent to the case-folded one for
purposes of information and definition schema and similar purposes which
seems like it would be intended to include things like column labeling for
output. There's a little bit of flexibility there on both similar purposes
and equivalence, though.


10) The <identifier body> of a <regular identifier> is equivalent
    to an <identifier body> in which every letter that is a lower-
    case letter is replaced by the equivalent upper-case letter
    or letters. This treatment includes determination of equiva-
    lence, representation in the Information and Definition Schemas,
    representation in the diagnostics area, and similar uses.

In response to


pgsql-hackers by date

Next:From: David FetterDate: 2006-10-31 18:31:40
Subject: Re: work on extending PostgreSQL to data integration systems
Previous:From: Lee RiquelmeiDate: 2006-10-31 18:13:47
Subject: work on extending PostgreSQL to data integration systems

pgsql-sql by date

Next:From: Chuck McDevittDate: 2006-10-31 18:32:42
Subject: Re: [HACKERS] Case Preservation disregarding case
Previous:From: Martijn van OosterhoutDate: 2006-10-31 18:06:13
Subject: Re: [HACKERS] Case Preservation disregarding case

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group