From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: abnormal size of the on-disk file.
Date: Fri, 26 Apr 2002 20:22:31 +0530
Message-ID: <3CC969AF.418C544B@trade-india.com> (raw)
Hi There,
I have a small table companies (< 300 rows) and its on-disk size shows
abnormal
i check it as follows:
SELECT relname,relfilenode from pg_class where relfilenode=30977;
relname | relfilenode
-----------+-------------
companies | 30977
(1 row)
ls -lsh 30977
487M -rw------- 1 postgres postgres 486M Apr 26 20:27 30977
bash-2.03$
i created a new table with the same content
tradein_clients=> CREATE TABLE t_a as select * from companies;
SELECT
its on disk file is very small
tradein_clients=> SELECT relname,relfilenode from pg_class where
relname='t_a';
relname | relfilenode
---------+-------------
t_a | 87812505
(1 row)
bash-2.03$ ls -lsh 87812505
196k -rw------- 1 postgres postgres 192k Apr 26 20:27 87812505
bash-2.03$
Can anyone explain this ..
does unvaccuming makes tables x2000 times largers??
regds
mallah.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mallah@trade-india.com
Subject: Re: abnormal size of the on-disk file.
In-Reply-To: <3CC969AF.418C544B@trade-india.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