Re: [PATCHES] Trivial patch to double vacuum speed - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] Trivial patch to double vacuum speed
Date
Msg-id 200609042147.k84Ll3P04850@momjian.us
Whole thread Raw
In response to Re: [PATCHES] Trivial patch to double vacuum speed on tables with no indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] Trivial patch to double vacuum speed on tables with no indexes
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Patch applied.  Thanks.
>
> Wait a minute.   This patch changes the behavior so that
> LockBufferForCleanup is applied to *every* heap page, not only the ones
> where there are removable tuples.  It's not hard to imagine scenarios
> where that results in severe system-wide performance degradation.
> Has there been any real-world testing of this idea?

I see the no-index case now:

+               if (nindexes)
+                       LockBuffer(buf, BUFFER_LOCK_SHARE);
+               else
+                       LockBufferForCleanup(buf);

Let's see what Greg says, or revert.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Trivial patch to double vacuum speed on tables with no indexes
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] setseed() doc