Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aBns7-0001je-1S for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Dec 2015 18:10:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aBns6-00054Y-I8 for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Dec 2015 18:10:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aBkpx-0006lT-Jg for pgsql-bugs@postgresql.org; Wed, 23 Dec 2015 14:56:21 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aBkpk-0002ne-D0 for pgsql-bugs@postgresql.org; Wed, 23 Dec 2015 14:56:21 +0000 MIME-Version: 1.0 Subject: BUG #13830: pg_table_size and pg_indexes_size To: pgsql-bugs@postgresql.org From: foggyglass@163.com Date: Wed, 23 Dec 2015 14:55:46 +0000 Message-ID: <20151223145546.2688.94659@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 13830 Logged by: T_T Email address: foggyglass@163.com PostgreSQL version: 9.5rc1 Operating system: centos7 Description: Hi friend, I think there is a error about pg_table_size and pg_indexes_size in PostgreSQL . This is my operation log [postgres@c7 bin]$./psql psql (9.5beta2) Type "help" for help. postgres=# create table b(id int); CREATE TABLE postgres=# create index b_idx on b(id); CREATE INDEX postgres=# select relname , pg_table_size(oid),pg_indexes_size(oid) postgres-# from pg_class where relname in ('b','b_idx'); relname | pg_table_size | pg_indexes_size ---------+---------------+----------------- b | 0 | 8192 b_idx | 8192 | 0 (2 rows) postgres=# The b_idex is a index , but pg_indexes_size does not show its size . The b is a table , but pg_table_size does not show its size .I think the pg_table_size show the b size , but not pg_indexes_size . -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs