Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuJLV-0006sV-Lq for pgsql-sql@arkaria.postgresql.org; Wed, 03 Jul 2013 09:27:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UuJLV-0007LH-5W for pgsql-sql@arkaria.postgresql.org; Wed, 03 Jul 2013 09:27:29 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuJLU-0007LB-Ey for pgsql-sql@postgresql.org; Wed, 03 Jul 2013 09:27:28 +0000 Received: from mimolette.dalibo.net ([212.85.154.222]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuJLO-0006uW-2Z for pgsql-sql@postgresql.org; Wed, 03 Jul 2013 09:27:27 +0000 Received: from [192.168.1.43] (gut75-2-82-66-247-92.fbx.proxad.net [82.66.247.92]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 5CEEB4501DBB; Wed, 3 Jul 2013 11:27:19 +0200 (CEST) Message-ID: <51D3EE75.6010401@dalibo.com> Date: Wed, 03 Jul 2013 11:27:17 +0200 From: Vik Fearing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Dev Kumkar , pgsql-sql@postgresql.org Subject: Re: Unquoted column names fold to lower case References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org 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