pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Seum-Lim Gan <slgan@lucent.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org
Subject: Re: index file bloating still in 7.4 ?
Date: Sun, 19 Oct 2003 09:46:08 -0500
Message-ID: <p05100313bbb852b0fe68@[192.168.10.52]> (raw)
In-Reply-To: <17172.1066542509@sss.pgh.pa.us>
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>

Hi Tom,

Thanks for info. I stoped the update and removed the process that's doing
the update and did vacuum analyze. This time the result says
the index row has been removed :

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.
CPU 2.86s/25.49u sec elapsed 54.16 sec.
INFO:  "dsperf_rda_or_key": removed 3097702 row versions in 53726 pages
DETAIL:  CPU 6.29s/26.05u sec elapsed 78.23 sec.
INFO:  "dsperf_rda_or_key": found 3097702 removable, 300000 
nonremovable row versions in 58586 pages
DETAIL:  0 dead row versions cannot be removed yet.
There were 5 unused item pointers.
0 pages are entirely empty.
CPU 10.23s/53.79u sec elapsed 135.78 sec.
INFO:  analyzing "scncraft.dsperf_rda_or_key"
INFO:  "dsperf_rda_or_key": 58586 pages, 3000 rows sampled, 176830 
estimated total rows
VACUUM

However, when I check the disk space usage, it has not changed.
Before and after the vacuum, it stayed the same :

/pg 822192 21% Sun Oct 19 09:34:25 CDT 2003
table /pg/data/base/17139/34048 Size=479936512 (relfilenode for table)
index /pg/data/base/17139/336727 Size=101474304 (relfilenode for index)

Any idea here ?

Another question, if we have a process that has different threads trying
to update PostgreSQL, is this going to post a problem if we do not have
the thread-safety option during configure ?

Thanks.

Gan

At 1:48 am -0400 2003/10/19, Tom Lane wrote:
>Seum-Lim Gan <slgan@lucent.com> writes:
>>  INFO:  vacuuming "craft.dsperf_rda_or_key"
>>  INFO:  index "hello242_1105" now contains 1792276 row versions in 6237 pages
>>  DETAIL:  0 index pages have been deleted, 0 are currently reusable.
>>  CPU 0.61s/0.36u sec elapsed 17.92 sec.
>>  INFO:  "hello_rda_or_key": found 0 removable, 1791736 nonremovable
>>  row versions in 30892 pages
>>  DETAIL:  1492218 dead row versions cannot be removed yet.
>
>You still haven't got an index-bloat problem.  I am, however, starting
>to wonder why you have so many dead-but-unremovable rows.  I think you
>must have some client process that's been holding an open transaction
>for a long time.
>
>			regards, tom lane


-- 
+--------------------------------------------------------+
| Seum-Lim GAN                 email : slgan@lucent.com  |
| Lucent Technologies                                    |
| 2000 N. Naperville Road, 6B-403F  tel : (630)-713-6665 |
| Naperville, IL 60566, USA.        fax : (630)-713-7272 |
|       web : http://inuweb.ih.lucent.com/~slgan         |
+--------------------------------------------------------+



view thread (18+ messages)  latest in thread

Message-ID: <p05100313bbb852b0fe68@[192.168.10.52]>
Permalink:  ../p05100313bbb852b0fe68@%5B192.168.10.52%5D/
Also on:    postgresql.org/message-id/p05100313bbb852b0fe68@[192.168.10.52]

 · 

reply

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-performance@postgresql.org
  Cc: slgan@lucent.com, tgl@sss.pgh.pa.us, josh@agliodbs.com
  Subject: Re: index file bloating still in 7.4 ?
  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]>

* 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