Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOAWg-0003gT-2G for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 19:43:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YOAWf-00081u-C0 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 19:43:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YOAWe-00081Z-N6 for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 19:43:12 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOAWa-0004BF-7t for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 19:43:11 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 619851448F4E for ; Wed, 18 Feb 2015 11:43:06 -0800 (PST) Date: Wed, 18 Feb 2015 12:43:06 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1424288586333-5838477.post@n5.nabble.com> In-Reply-To: <20150218192712.8729.67799@wrigleys.postgresql.org> References: <20150218192712.8729.67799@wrigleys.postgresql.org> Subject: Re: BUG #12784: pg_relation_size has problems with case in index name MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Gibheer wrote > The following bug has been logged on the website: > > Bug reference: 12784 > Logged by: Stefan Radomski > Email address: > gibheer@ > PostgreSQL version: 9.4.1 > Operating system: FreeBSD 10.1p5 > Description: > > I found a problem with indexes which have an uppercase letter in the name. > You can reproduce it with the following statements: > > create table unfindable("Test" text); > create index on unfindable("Test"); > \d unfindable > select pg_relation_size('unfindable_Test_idx'); > > It does work for tables with upper case characters in the name though. To be specific: your complaint is that the system generated index name (since you didn't provide a name of your own) does not respect the capitalization of the table name upon which it is being created. My guess is that the name of the table is normalized in some form in order to make the index name less complicated - say if the table name has special characters or embedded spaces. Your complaint is likely better categorized as a feature request or just an implementation detail you can live with or avoid by providing your own index name. I haven't dug into this at all to make a better determination. David J. -- View this message in context: http://postgresql.nabble.com/BUG-12784-pg-relation-size-has-problems-with-case-in-index-name-tp5838476p5838477.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs