Re: PostgreSQL Gotchas - Mailing list pgsql-general

From Tom Lane
Subject Re: PostgreSQL Gotchas
Date
Msg-id 9698.1129300794@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL Gotchas  (Greg Stark <gsstark@mit.edu>)
Responses Re: PostgreSQL Gotchas  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> and the lexer thinks that it should fold unquoted identifiers to upper
>> case, then the catalog entries defining these names had better read
>> PG_CLASS, RELPAGES, and MAX, not the lower-case names they contain
>> today.

> Well the case of unquoted identifiers could be finessed by having it match
> RELPAGES first and fail over to relpages second. It could even be made to
> match RelPages and whatever if there isn't any ambiguity.

[ shrug... ]  Sure, you could invent some rule that might sort of work
most of the time.  But then you've abandoned the sole rationale for the
entire project, which is to *adhere to the standard*.  Any kind of funny
business with the case folding rules will make things worse not better
from that standpoint.

            regards, tom lane

pgsql-general by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: Using LISTEN/NOTIFY in C#.NET
Next
From: Tatsuo Ishii
Date:
Subject: Re: On "multi-master"