Re: PostgreSQL Gotchas - Mailing list pgsql-general

From Tom Lane
Subject Re: PostgreSQL Gotchas
Date
Msg-id 8423.1129480825@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL Gotchas  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: PostgreSQL Gotchas
Re: PostgreSQL Gotchas
Re: PostgreSQL Gotchas
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> Actually, perhaps an even more restricted version would be better.
> Lowercase quoted identifiers only if they are all uppercase. So then:

No, I think the original proposal was better.  This one doesn't fix
things for the lusers who think "MixedCase" and unquoted MixedCase
should be the same.

> Note to implementor: In 'SELECT 1 as "Title"', the quoted string should
> not be lowercased, even if you are lowercasing everything else...

You don't get to have that, I think, because the lexer is not context
aware.  It's not clear to me why it's a good idea anyway.

            regards, tom lane

pgsql-general by date:

Previous
From: "Andrew Janian"
Date:
Subject: Long running update
Next
From: Martijn van Oosterhout
Date:
Subject: Re: PostgreSQL Gotchas