Re: PG case sensitivity - Mailing list pgsql-general

From Tom Lane
Subject Re: PG case sensitivity
Date
Msg-id 7229.1095173663@sss.pgh.pa.us
Whole thread Raw
In response to Re: PG case sensitivity  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Responses Re: PG case sensitivity
Re: PG case sensitivity
List pgsql-general
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> ... There's been talk about supporting a
> mode which case folds the other direction. In general, however, mixing
> quoted and unquoted names is dangerous in all complient databases, because
> in none would "Bla" and bla or BLA be the same name.

We have looked at this before and keep coming up with the conclusion
that (a) on-the-fly changes in the backend behavior are impractical;
and (b) if we only get to have one behavior, the current one is the best
compromise we are going to get.

I wonder though whether we could offer some tweaking on client side.
For instance consider the JDBC driver's getMetaData operations.
You could imagine a JDBC driver mode that would smash all returned
identifiers to upper case.  For an application that was willing to
promise it would never explicitly quote identifiers in the SQL it
generates, this would not break anything AFAICS; and it would satisfy
app code that was expecting to see upper instead of lower case.

            regards, tom lane

pgsql-general by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: PG case sensitivity
Next
From: Stephan Szabo
Date:
Subject: Re: PG case sensitivity