Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuNJX-00047o-0y for pgsql-sql@arkaria.postgresql.org; Wed, 03 Jul 2013 13:41:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UuNJW-0002df-AK for pgsql-sql@arkaria.postgresql.org; Wed, 03 Jul 2013 13:41:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuNJV-0002dY-K8 for pgsql-sql@postgresql.org; Wed, 03 Jul 2013 13:41:41 +0000 Received: from nm26-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.74]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuNJR-0002kF-99 for pgsql-sql@postgresql.org; Wed, 03 Jul 2013 13:41:40 +0000 Received: from [98.139.212.144] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2013 13:41:35 -0000 Received: from [98.139.212.249] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2013 13:41:35 -0000 Received: from [127.0.0.1] by omp1058.mail.bf1.yahoo.com with NNFMP; 03 Jul 2013 13:41:35 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 374414.70856.bm@omp1058.mail.bf1.yahoo.com Received: (qmail 61129 invoked by uid 60001); 3 Jul 2013 13:41:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1372858895; bh=dy/6AvopfhKiUZpTnKTKXNA0kSxwF2TilzFLhD1SbzM=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=25zlXPYzLymPFkJQecyi7xZPvIR12loK3kiCfpVoNfHrKIPtrbXls0uxk+YqDMfbsqF6eG+LzERzJSrdoaLC3DX/DGuhJDVeGDurtYQiPQRilRyuOogEignRScvHHeD7ULdVnV2JZYf9JuZsHFWQfz/xB3x1Mo3XfvBq8NjyeSQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=zJDXzz67hUAnibWAS7LtCrYr4CPokTtERpI9sXWmIya6Wp8tduLLyOKV71aHzb+jwb1k29ad9cTNHEpd6DrsSeiRyMBBmH/ceT2+3sPrx+z/Nni25AnCDTE3ew5YvGFFBeY6v59pLxG9sBi3YTlsoWIqPZxpNfIMQeJraLc2JDY= ; X-YMail-OSG: 15dfX7oVM1mfxNL4QgEOr3tJ1ob.j9TJgbkH8tN4YW2GIJ7 lZ64HjN2ZQQnMRdLICTl0qfF25QrvDduW_UvzDrNrcdewCwuKZgZ6sLlCuR4 VVTIC0E2b8ozeAKsH95FxNVQXEPH9C3L7EZ3zYwnJBZ4D0cdvPS5mDu1O2G9 3PCqQ8720sBxVSQWBr3Yri9.AhWi7VuiI7J1rRjabneoAFA5b1MJiYk1rbj2 .NcwLlmC6A5nifoF6_3DsBolbolKH4x80InzJP2pQGIVPD5Bx0KnpEnNXCS4 Jzy7NeOiS_HhJcVjupKCFl0Yib6gryr.ycZaUd6KVmtV7TgEgShtFDU1ioMj xFhlYfznaHgscufDO_hKh7ak5068r.RGmv1KUY_O0yGh70SArK8apU95kPqF x4HSA3hkOSjqE_xe7zg9zhIXq9CR5kg.CnVrAD5A4Zmv4K8AU8beq8FBy_Ah Um._GsJYwNB5v3RiyRgANfZzadUAcjX1tYlKxQulcC.LNFdfas8vPDkueFlF 8ASEub9OuAlWYGMqBpLf_5OOovmJM6QWgF5HbGVNQLjrX7pkY0znrzd9RLo4 duM8pg3l_Tu3Eqg7crASFNHuvdbcjZ2xqS.aQVm4D0Kc- Received: from [108.35.139.101] by web161605.mail.bf1.yahoo.com via HTTP; Wed, 03 Jul 2013 06:41:34 PDT X-Rocket-MIMEInfo: 002.001, c29ycnksIGJ1dCB5b3UgbWlzdW5kZXJzdGFuZC4gdGhpcyBpcyB0aGUgY29ycmVjdCBiZWhhdmlvciBvZiBTUUwuDQoNCkl0IGlzIHBhcnQgb2YgdGhlIHNwZWNpZmljYXRpb24gdG8gZG8gdGhpcy4NCg0KLS0tIE9uIFdlZCwgNy8zLzEzLCBEZXYgS3Vta2FyIDxkZXZkYXMua3Vta2FyQGdtYWlsLmNvbT4gd3JvdGU6DQoNCj4gRnJvbTogRGV2IEt1bWthciA8ZGV2ZGFzLmt1bWthckBnbWFpbC5jb20.DQo.IFN1YmplY3Q6IFtTUUxdIFVucXVvdGVkIGNvbHVtbiBuYW1lcyBmb2xkIHRvIGxvd2VyIGNhc2UNCj4BMAEBAQE- X-Mailer: YahooMailClassic/16.0.3 YahooMailWebService/0.8.148.557 Message-ID: <1372858894.60580.YahooMailClassic@web161605.mail.bf1.yahoo.com> Date: Wed, 3 Jul 2013 06:41:34 -0700 (PDT) From: Theodore Petrosky Subject: Re: Unquoted column names fold to lower case To: pgsql-sql@postgresql.org, Dev Kumkar In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -0.4 (/) 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 sorry, but you misunderstand. this is the correct behavior of SQL. It is part of the specification to do this. --- On Wed, 7/3/13, Dev Kumkar wrote: > From: Dev Kumkar > Subject: [SQL] Unquoted column names fold to lower case > To: pgsql-sql@postgresql.org > Date: Wednesday, July 3, 2013, 5:12 AM > Hello, > > 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. Is there > any connection level parameter to flip this behavior? > > Thanks in advance! > > > Regards... > > -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql