pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: pgsql-bugs@postgresql.org
Subject: BUG #5915: OldSerXidAdd inflates pg_serial too much
Date: Fri, 4 Mar 2011 12:41:13 GMT
Message-ID: <201103041241.p24CfDZV063217@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5915
Logged by:          YAMAMOTO Takashi
Email address:      yamt@mwd.biglobe.ne.jp
PostgreSQL version: 9.1devel
Operating system:   NetBSD
Description:        OldSerXidAdd inflates pg_serial too much
Details: 

a seemingly wrong math in OldSerXidAdd makes it busy writing zeros
to pg_serial.


diff --git a/src/backend/storage/lmgr/predicate.c
b/src/backend/storage/lmgr/predicate.c
index aa657fa..297508b 100644
inline patch 1: src/backend/storage/lmgr/predicate.c (+0/-0 lines) download inline-1.patch--- a/src/backend/storage/lmgr/predicate.c +++ b/src/backend/storage/lmgr/predicate.c @@ -755,7 +755,7 @@ OldSerXidAdd(TransactionId xid, SerCommitSeqNo
minConflictCommitSeqNo) { page = OldSerXidPage(tailXid); oldSerXidControl->tailSegment = OldSerXidSegment(page); - page = oldSerXidControl->tailSegment * OLDSERXID_ENTRIESPERPAGE; + page = oldSerXidControl->tailSegment * SLRU_PAGES_PER_SEGMENT; isNewPage = true; } else

view thread (11+ messages)  latest in thread

Message-ID: <201103041241.p24CfDZV063217@wwwmaster.postgresql.org>
Permalink:  ../201103041241.p24CfDZV063217@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201103041241.p24CfDZV063217@wwwmaster.postgresql.org

 ·  · 

reply

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-bugs@postgresql.org
  Cc: yamt@mwd.biglobe.ne.jp
  Subject: Re: BUG #5915: OldSerXidAdd inflates pg_serial too much
  In-Reply-To: <201103041241.p24CfDZV063217@wwwmaster.postgresql.org>
  References: <201103041241.p24CfDZV063217@wwwmaster.postgresql.org>

* 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