Skip site navigation (1) Skip section navigation (2)

make 'PrivateRefCount' 32 bits wide

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: make 'PrivateRefCount' 32 bits wide
Date: 2004-04-21 19:57:47
Message-ID: 1082577467.7010.40.camel@tokyo (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
This patch changes PrivateRefCount and LocalRefCount in the bufmgr from
being arrays of long to arrays of int32, per earlier discussion. This
should save a little memory on 64LP machines, and there's no way we need
to track > 2^31 references to a single buffer.

I also fixed the rather widespread assumption that a BufferDesc's
refcount is signed; it is not (and hence the correct printf formatting
code is %u, not %d).

I also changed ShowPinTrace to a bool, and removed some multi-line
string literals (yuck!)

Barring any objections, I intend to apply this patch within 24 hours.


Attachment: buffer-refcount-tweak-1.patch
Description: text/x-patch (13.2 KB)


pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-04-22 01:54:09
Subject: Re: PSQLRC environment variable.
Previous:From: Neil ConwayDate: 2004-04-21 19:28:57
Subject: Re: doc improv: backup/restore

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group