agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Dev Kumkar <devdas.kumkar@gmail.com>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Unquoted column names fold to lower case
Date: Wed, 3 Jul 2013 11:35:24 -0400
Message-ID: <20130703153524.GB6492@momjian.us> (raw)
In-Reply-To: <CALSLE1N-WnxujTjD+ED9u4pjFrUnHbm8zr9+SmMvu5NPAMGw1g@mail.gmail.com>
References: <CALSLE1PeLH4iqEyT5RH=d4Y3VmrRyxm6rvnV9fNC0++u9h-WWw@mail.gmail.com>
	<1372858894.60580.YahooMailClassic@web161605.mail.bf1.yahoo.com>
	<kr1bl9$96d$1@ger.gmane.org>
	<20130703152402.GA6492@momjian.us>
	<CALSLE1N-WnxujTjD+ED9u4pjFrUnHbm8zr9+SmMvu5NPAMGw1g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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@momjian.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@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

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


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (23+ messages)  latest in thread

Message-ID: <20130703153524.GB6492@momjian.us>
Permalink:  ../20130703153524.GB6492@momjian.us/
Also on:    postgresql.org/message-id/20130703153524.GB6492@momjian.us

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruce@momjian.us, devdas.kumkar@gmail.com, spam_eater@gmx.net
  Subject: Re: Unquoted column names fold to lower case
  In-Reply-To: <20130703153524.GB6492@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox