Re: [SQL] id and ID in CREATE TABLE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: stefan(at)extum(dot)com
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [SQL] id and ID in CREATE TABLE
Date: 2002-07-19 15:36:19
Message-ID: 200207191536.g6JFaJ611620@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

stefan(at)extum(dot)com wrote:
>
> I forgot about "" Sorry. So if I would use names quoted then my questions
> are obsolete. Except one:
>
> So actually the only strange part would be PostgreSQL is folding to lower
> cases a column name ...
>
> >From docs:
>
> The folding of unquoted names to lower case in PostgreSQL is
> incompatible with the SQL standard, which says that unquoted names should
> be folded to upper case. Thus, foo should be equivalent to "FOO" not
> "foo" according to the standard. If you want to write portable
> applications you are advised to always quote a particular name or never
> quote it.
>
>
> Why is like this ? Why not letting them upper case if they are not quoted
> ?

Well, historically, we always did lower case, and all-upper case looks
ugly. That's about it.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-07-19 15:38:10 Re: Linux max on shared buffers?
Previous Message Mike Mascari 2002-07-19 15:32:21 Re: References for PostgreSQL

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Swan 2002-07-19 15:39:32 Re: [GENERAL] id and ID in CREATE TABLE
Previous Message Josh Berkus 2002-07-19 15:26:37 Adventures in PostgreSQL