pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6149: My table is empty but pg_relation_size(name) returns 39 MB
2+ messages / 2 participants
[nested] [flat]
* BUG #6149: My table is empty but pg_relation_size(name) returns 39 MB
@ 2011-08-04 11:16 Shivakumar Ramannavar <shivasr@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Shivakumar Ramannavar @ 2011-08-04 11:16 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6149
Logged by: Shivakumar Ramannavar
Email address: shivasr@gmail.com
PostgreSQL version: 9.0.4
Operating system: open SUSE Linux
Description: My table is empty but pg_relation_size(name) returns 39
MB
Details:
Hi Team,
Though my table is empty, pg_relation_size(name) return 38 MB. I use below
query to determine tables disk usages.
SELECT nspname || '.' || relname AS "Table",
pg_total_relation_size(C.oid) "Size",
pg_size_pretty(pg_total_relation_size(C.oid)) AS "Total size"
FROM pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
WHERE nspname NOT IN ('pg_catalog', 'information_schema')
AND C.relkind <> 'i'
AND nspname !~ '^pg_toast'
Please help,
Thanks!
Shiva
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6149: My table is empty but pg_relation_size(name) returns 39 MB
@ 2011-08-04 15:24 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: Shivakumar Ramannavar <shivasr@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Grittner @ 2011-08-04 15:24 UTC (permalink / raw)
To: Shivakumar Ramannavar <shivasr@gmail.com>; pgsql-bugs
"Shivakumar Ramannavar" <shivasr@gmail.com> wrote:
> Though my table is empty, pg_relation_size(name) return 38 MB.
This is unlikely to be a bug, although without more information it's
hard to be sure. Please post any follow-ups on the identical post
you put on another list. And please don't cross-post like that.
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
-Kevin
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-08-04 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04 11:16 BUG #6149: My table is empty but pg_relation_size(name) returns 39 MB Shivakumar Ramannavar <shivasr@gmail.com>
2011-08-04 15:24 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
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