Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 516DB538120 for ; Sat, 28 Jan 2012 12:17:04 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RrAxa-0006An-7m for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 16:17:03 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RrAxM-000777-EX for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 16:16:49 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RrAxL-0007e3-HL for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 16:16:47 +0000 Date: Sat, 28 Jan 2012 16:16:47 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6413: pg_relation_size wont work on table with upper case chars To: pgsql-bugs@postgresql.org From: james@stev.org X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/217 X-Sequence-Number: 32284 The following bug has been logged on the website: Bug reference: 6413 Logged by: James Stevenson Email address: james@stev.org PostgreSQL version: 8.4.9 Operating system: Linux - Debian Squeeze Description: = I suspect pg_relation_size has a tolower in it to a table name called Attempts will not work with pg_relation_size Both pg_relation_size('Attempts') and pg_relation_size('attempts') fails with no such table. After table rename from Attempts to attempts it will work.