pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12784: pg_relation_size has problems with case in index name
Date: Wed, 18 Feb 2015 12:43:06 -0700 (MST)
Message-ID: <1424288586333-5838477.post@n5.nabble.com> (raw)
In-Reply-To: <20150218192712.8729.67799@wrigleys.postgresql.org>
References: <20150218192712.8729.67799@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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-tp58384...
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



view thread (3+ messages)  latest in thread

Message-ID: <1424288586333-5838477.post@n5.nabble.com>
Permalink:  ../1424288586333-5838477.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1424288586333-5838477.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: BUG #12784: pg_relation_size has problems with case in index name
  In-Reply-To: <1424288586333-5838477.post@n5.nabble.com>
  References: <20150218192712.8729.67799@wrigleys.postgresql.org> <1424288586333-5838477.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox