Re: reindex/vacuum locking/performance?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt Clark" <matt(at)ymogen(dot)net>
Cc: "Andrew Sullivan" <andrew(at)libertyrms(dot)info>, pgsql-performance(at)postgresql(dot)org
Subject: Re: reindex/vacuum locking/performance?
Date: 2003-10-05 18:07:13
Message-ID: 6652.1065377233@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Matt Clark" <matt(at)ymogen(dot)net> writes:
> OK, I had thought (wrongly it seems, as usual, but this is how we learn!)
> that a plain VACUUM did not incur a read of all pages. I still don't
> understand *why* it does, but I'll take your word for it.

Mainly 'cause it doesn't know where the dead tuples are till it's
looked. Also, VACUUM is the data collector for the free space map,
and so it is also charged with finding out how much free space exists
on every page.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matt Clark 2003-10-05 18:43:17 Re: reindex/vacuum locking/performance?
Previous Message Matt Clark 2003-10-05 17:59:14 Re: reindex/vacuum locking/performance?