Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WpWhl-000210-2k for pgsql-sql@arkaria.postgresql.org; Wed, 28 May 2014 05:47:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WpWhj-0002H4-1g for pgsql-sql@arkaria.postgresql.org; Wed, 28 May 2014 05:47:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WpWhh-0002Gx-WA for pgsql-sql@postgresql.org; Wed, 28 May 2014 05:47:10 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WpWhe-0000NT-GW for pgsql-sql@postgresql.org; Wed, 28 May 2014 05:47:08 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WpWhe-0007Eg-0J for pgsql-sql@postgresql.org; Tue, 27 May 2014 22:47:06 -0700 Date: Tue, 27 May 2014 22:47:06 -0700 (PDT) From: creechy To: pgsql-sql@postgresql.org Message-ID: <1401256026003-5805199.post@n5.nabble.com> In-Reply-To: <20130703190831.GG3592@eldon.alvh.no-ip.org> References: <1372858894.60580.YahooMailClassic@web161605.mail.bf1.yahoo.com> <20130703152402.GA6492@momjian.us> <20130703153524.GB6492@momjian.us> <20130703190831.GG3592@eldon.alvh.no-ip.org> Subject: Re: Unquoted column names fold to lower case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 0.6 (/) 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 Alvaro Herrera-9 wrote > Dev Kumkar escribi=C3=B3: >=20 > Aliases are treated just like any other identifier. The downcasing > happens in the lexer (src/backend/parser/scan.l), which is totally > unaware of the context in which this is happening; so there's no way to > tweak the downcasing behavior for only aliases and not other > identifiers. Hi, sorry I know this is an old thread, but I'm running up against the same issue. This statement seems to contradict the PostgreSQL documentation regarding identifiers. From "4.1.1. Identifiers and Key Words" in http://www.postgresql.org/docs/8.0/static/sql-syntax.html it states "Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case. For example, the identifiers FOO, foo, and "foo" are considered the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other." But your statement suggests that even though aliases are treated like any other identifier, and you can quote an identifier to make it case sensitive, this is not happening. To me this sounds like a bug. Thoughts? -- View this message in context: http://postgresql.1045698.n5.nabble.com/Unquo= ted-column-names-fold-to-lower-case-tp5762315p5805199.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. --=20 Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql