Re: Unquoted column names fold to lower case

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Dev Kumkar <devdas(dot)kumkar(at)gmail(dot)com>
Cc: Thomas Kellerer <spam_eater(at)gmx(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Unquoted column names fold to lower case
Date: 2013-07-03 15:35:24
Message-ID: 20130703153524.GB6492@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Jul 3, 2013 at 09:02:20PM +0530, Dev Kumkar wrote:
> On Wed, Jul 3, 2013 at 8:54 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
> Agreed. The original poster specifically wanted "MYTABLE" and mytable
> to be the same, not "mytable" and mytable. Postgres is certainly
> non-standard in this area. I think the ability visiually distinguish
> lower-case letters better than upper-case letters has led to our
> behavior.
>
>
> Not really, actually am looking for column aliases here and not the table. Here
> is the example again when the aliases are unquoted:
> - SELECT my_column as MY_COLUMN FROM my_table
>
> The above SELECT will fold the alias name as my_column and not MY_COLUMN.

Yes, both the identifier names and alias names are folded to lower case.
I never thought of them as different, but you are right, they are, and
we are non-standard in both areas. Sorry.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Dev Kumkar 2013-07-03 15:50:54 Re: Unquoted column names fold to lower case
Previous Message Dev Kumkar 2013-07-03 15:32:20 Re: Unquoted column names fold to lower case