Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C9F67F13E4C for ; Sun, 13 Nov 2011 19:27:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 76198-07 for ; Sun, 13 Nov 2011 23:27:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id BA64AF13E4B for ; Sun, 13 Nov 2011 19:27:12 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pADNRBx0028794; Sun, 13 Nov 2011 18:27:12 -0500 (EST) To: "Daniel Farina" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6291: Xid epoch is not updated properly In-reply-to: <201111132215.pADMFgvH080387@wwwmaster.postgresql.org> References: <201111132215.pADMFgvH080387@wwwmaster.postgresql.org> Comments: In-reply-to "Daniel Farina" message dated "Sun, 13 Nov 2011 22:15:42 +0000" Date: Sun, 13 Nov 2011 18:27:11 -0500 Message-ID: <28793.1321226831@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/97 X-Sequence-Number: 31692 "Daniel Farina" writes: > We have on hand a database that makes heavy use of the txid_snapshot family > of functions, and recently it just passed its 4^32 transaction mark. > Unfortunately, upon wraparound the xid epoch appears to not have been > incremented, remaining at 0. I failed to reproduce this here, and a look at the code responsible for xid epoch maintenance reveals no obvious way that it could have been bypassed. So there's some fairly critical piece of context that you're not telling us ... regards, tom lane