agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Vik Fearing <vik.fearing@dalibo.com>
To: Dev Kumkar <devdas.kumkar@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Unquoted column names fold to lower case
Date: Wed, 03 Jul 2013 11:27:17 +0200
Message-ID: <51D3EE75.6010401@dalibo.com> (raw)
In-Reply-To: <CALSLE1PeLH4iqEyT5RH=d4Y3VmrRyxm6rvnV9fNC0++u9h-WWw@mail.gmail.com>
References: <CALSLE1PeLH4iqEyT5RH=d4Y3VmrRyxm6rvnV9fNC0++u9h-WWw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

On 07/03/2013 11:12 AM, Dev Kumkar wrote:
> All unquoted identifiers are assumed by PostgreSQL to be lower case by
> default. This means
> - SELECT MY_COLUMN FROM my_table
> - SELECT my_column FROM my_table
> - SELECT my_column as MY_COLUMN FROM my_table
> All refer to my_column and has column name in lowercase as my_column.
>
> If the aliases are in upper case and quoted then those are returned in
> upper case.
> - SELECT my_column as "MY_COLUMN" FROM my_table
>
> Is there any workaround to set the alias columns to be returned as
> upper case with adding quotes.

There is no workaround because there is no bug.

> Is there any connection level parameter to flip this behavior?

No.


-- 
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: <51D3EE75.6010401@dalibo.com>
Permalink:  ../51D3EE75.6010401@dalibo.com/
Also on:    postgresql.org/message-id/51D3EE75.6010401@dalibo.com

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: vik.fearing@dalibo.com, devdas.kumkar@gmail.com
  Subject: Re: Unquoted column names fold to lower case
  In-Reply-To: <51D3EE75.6010401@dalibo.com>

* 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