From: Tom Lane <tgl@sss.pgh.pa.us>
To: Neil Conway <neilc@samurai.com>
Cc: sean@chittenden.org
Cc: logan@datacurrent.com
Cc: pgsql-performance@postgresql.org
Subject: Re: postgresql meltdown on PlanetMath.org
Date: Mon, 17 Mar 2003 01:34:20 -0500
Message-ID: <495.1047882860@sss.pgh.pa.us> (raw)
In-Reply-To: <33137.130.15.224.150.1047881939.squirrel@mailbox.samurai.com>
References: <20030316060125.GD19570@vt.edu>
<3E741B93.1090203@joeconway.com>
<20030316075206.GE19570@vt.edu>
<Pine.LNX.4.53.0303170059580.8767@neo.magick.org>
<20030317061011.GH23355@perrin.int.nxad.com>
<33137.130.15.224.150.1047881939.squirrel@mailbox.samurai.com>
"Neil Conway" <neilc@samurai.com> writes:
> Sean Chittenden said:
> A "select count(*) FROM tblwordidx" initially took about 1 second to
> return a count of 2 million but after a few months it took several
> minutes of really hard HDD grinding.
>>
>> That's because there are dead entries in the index that weren't being
>> reused or cleaned up. As I said, this has been fixed.
> That's doubtful: "select count(*) FROM foo" won't use an index.
To know what's going on, as opposed to guessing about it, we'd need to
know something about the physical sizes of the table and its indexes.
"vacuum verbose" output would be instructive...
But my best theorizing-in-advance-of-the-data guess is that Logan's
FSM settings are too small, causing free space to be leaked over time.
If a vacuum full restores the original performance then that's probably
the right answer.
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 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: tgl@sss.pgh.pa.us, neilc@samurai.com, sean@chittenden.org, logan@datacurrent.com
Subject: Re: postgresql meltdown on PlanetMath.org
In-Reply-To: <495.1047882860@sss.pgh.pa.us>
References: <20030316060125.GD19570@vt.edu> <3E741B93.1090203@joeconway.com> <20030316075206.GE19570@vt.edu> <Pine.LNX.4.53.0303170059580.8767@neo.magick.org> <20030317061011.GH23355@perrin.int.nxad.com> <33137.130.15.224.150.1047881939.squirrel@mailbox.samurai.com> <495.1047882860@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