Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D75E51337B81 for ; Tue, 25 Jan 2011 16:51:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 45344-02 for ; Tue, 25 Jan 2011 20:51:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 497EE1337B34 for ; Tue, 25 Jan 2011 16:51:09 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 034F6348024; Tue, 25 Jan 2011 12:51:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3xpJq55hCMfE; Tue, 25 Jan 2011 12:51:00 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.28.83]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id C9598348022; Tue, 25 Jan 2011 12:50:59 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 522D66E4BB; Tue, 25 Jan 2011 17:50:57 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #5845: Postgres does not seem to handle unquoted upper cased object identifiers From: Alvaro Herrera To: Kasia Tuszynska In-reply-to: <201101241948.p0OJmLeL005707@wwwmaster.postgresql.org> References: <201101241948.p0OJmLeL005707@wwwmaster.postgresql.org> Date: Tue, 25 Jan 2011 17:50:57 -0300 Message-Id: <1295988611-sup-1649@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/194 X-Sequence-Number: 29216 Excerpts from Kasia Tuszynska's message of lun ene 24 16:48:21 -0300 2011: > Basic issue: > In the documentation Postgres states that it's identifiers (table, column > names etc)are case insensitive and thus it stores everything in lower case. > To preserve case of a identifier, the name needs to be quoted. > But it's handing of incoming upper cased identifiers seems to be > inconsistent. > We have observed the following: > create table á007 (objectid integer); > select * from á007;Found > select * from Á007;Not Found Yes, this is a known limitation, but previous discussions about it haven't led to finding a solution to the problem. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support