Re: PostgreSQL Gotchas - Mailing list pgsql-general

From Tom Lane
Subject Re: PostgreSQL Gotchas
Date
Msg-id 25197.1129231969@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL Gotchas  (Chris Travers <chris@travelamericas.com>)
Responses Re: PostgreSQL Gotchas  (Chris Travers <chris@travelamericas.com>)
Re: PostgreSQL Gotchas  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Chris Travers <chris@travelamericas.com> writes:
> Tom Lane wrote:
>> Since the end reward for all this work would be having to read CATALOGS
>> WRITTEN IN ALL UPPER CASE, none of the key developers seem very
>> interested ...
>>
> Why would this be required?

If you write, say,

    select max(relpages) from pg_class;

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.  So this wouldn't be something you could flip on-the-fly --- at
the latest, an installation would have to commit to upper or lower case
at initdb time, because the initial contents of all the system catalogs
would need to match the choice.

Please read the previous discussions on the topic, if you want to
pontificate about it.

            regards, tom lane

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: fine tuned database dump/reload?
Next
From: "Jim C. Nasby"
Date:
Subject: Re: user privilages for executing pg_autovacuum?