From: foggyglass@163.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13830: pg_table_size and pg_indexes_size
Date: Wed, 23 Dec 2015 14:55:46 +0000
Message-ID: <20151223145546.2688.94659@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
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: foggyglass@163.com
Subject: Re: BUG #13830: pg_table_size and pg_indexes_size
In-Reply-To: <20151223145546.2688.94659@wrigleys.postgresql.org>
References: <20151223145546.2688.94659@wrigleys.postgresql.org>
* 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