Re: [PATCHES] Refactoring lock.c

2005-02-03 Thread Heikki Linnakangas
On Thu, 3 Feb 2005, Neil Conway wrote: On Wed, 2005-02-02 at 21:41 +0200, Heikki Linnakangas wrote: There's two almost identical pieces of code in LockRelease and LockReleaseAll that do the opposite of GrantLock. Here's a small patch that replaces those pieces with a static UnGrantLock function. Lo

Re: [PATCHES] dbsize patch

2005-02-03 Thread Ed L.
Neil, do you have a verdict on this patch? On Friday January 28 2005 10:30, Ed L. wrote: > If the C code for the prior dbsize patch is not acceptable for > whatever reason, here's a SQL-based patch to replace it. It's > not a drop-in for 7.3/7.4 as I'd hoped, only an 8.1 patch. I > believe it is

[PATCHES] buffer manager refactoring to isolate ARC algorithm

2005-02-03 Thread Tom Lane
I'm planning to apply the attached patch to hide the ARC-related data structures in freelist.c. There are no data structure or algorithm changes, just removal of ARC details from the shared header buf_internals.h, plus minor refactoring to hide the knowledge that ARC wants a twice-normal-size buff

Re: [PATCHES] Refactoring lock.c

2005-02-03 Thread Neil Conway
Heikki Linnakangas wrote: There's two almost identical pieces of code in LockRelease and LockReleaseAll that do the opposite of GrantLock. Here's a small patch that replaces those pieces with a static UnGrantLock function. Applied to HEAD with a few trivial editorial fixes. Thanks for the patch.

[PATCHES] Proof-of-concept ARC removal patches

2005-02-03 Thread Tom Lane
Attached are two different variants of a patch to remove the ARC cache algorithm in favor of variants of the "2Q" algorithm. The first patch approximates the "full 2Q" algorithm described by Johnson and Shasha, while the second approximates their "simplified 2Q" method. Full 2Q uses a list of pag

Re: [PATCHES] [pgsql-patches] Proof-of-concept ARC removal patches

2005-02-03 Thread Serguei Mokhov
> Date: Thu, 03 Feb 2005 21:41:52 -0500 > From: Tom Lane <[EMAIL PROTECTED]> > Subject: Proof-of-concept ARC removal patches Re: subject -- shouldn't it be "replacement" and _not_ "removal" of ARC? > Attached are two different variants of a patch to remove the ARC > cache algorithm in favor of va

Re: [PATCHES] Proof-of-concept ARC removal patches

2005-02-03 Thread Simon Riggs
> Tom Lane wrote > Attached are two different variants of a patch to remove the ARC > cache algorithm in favor of variants of the "2Q" algorithm. > > The first patch approximates the "full 2Q" algorithm described by > Johnson and Shasha, while the second approximates their > "simplified 2Q" > metho

Re: [PATCHES] [HACKERS] WAL: O_DIRECT and multipage-writer (+ memory leak)

2005-02-03 Thread ITAGAKI Takahiro
Hello everyone. I fixed two bugs in the patch that I sent before. Check and test new one, please. 1. Fix update timing of Write->curridx. (pointed by Tom) Change to update it soon after write(). 2. Fix buffer alignment routine on 64bit cpu. (pointed by Mark) I checked it on Xeon EM64T