From: Tom Lane <tgl@sss.pgh.pa.us>
To: Seum-Lim Gan <slgan@lucent.com>
Cc: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org
Subject: Re: index file bloating still in 7.4 ?
Date: Sun, 19 Oct 2003 11:47:22 -0400
Message-ID: <19692.1066578442@sss.pgh.pa.us> (raw)
In-Reply-To: <p05100313bbb852b0fe68@[192.168.10.52]>
References: <p0510030cbbb7667a7f87@[192.168.10.52]>
<200310181458.15575.josh@agliodbs.com>
<p0510030dbbb79c742da5@[192.168.10.52]>
<16213.1066530060@sss.pgh.pa.us>
<p0510030ebbb7cabb0ceb@[192.168.10.52]>
<17172.1066542509@sss.pgh.pa.us>
<p05100313bbb852b0fe68@[192.168.10.52]>
Seum-Lim Gan <slgan@lucent.com> writes:
> vacuum verbose analyze dsperf_rda_or_key;
> INFO: vacuuming "scncraft.dsperf_rda_or_key"
> INFO: index "dsperf242_1105" now contains 300000 row versions in 12387 pages
> DETAIL: 3097702 index row versions were removed.
> 0 index pages have been deleted, 0 are currently reusable.
Hm, interesting that you deleted 90% of the entries and still had no
empty index pages at all. What was the pattern of your deletes and/or
updates with respect to this index's key?
> However, when I check the disk space usage, it has not changed.
It won't in any case. Plain VACUUM is designed for maintaining a
steady-state level of free space in tables and indexes, not for
returning major amounts of space to the OS. For that you need
more-invasive operations like VACUUM FULL or REINDEX.
regards, tom lane
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, slgan@lucent.com, josh@agliodbs.com
Subject: Re: index file bloating still in 7.4 ?
In-Reply-To: <19692.1066578442@sss.pgh.pa.us>
* 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