From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: yamt <yamt@mwd.biglobe.ne.jp>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #6218: TRAP: FailedAssertion( "!(owner->nsnapshots == 0)", File: "resowner.c", Line: 365)
Date: Mon, 26 Sep 2011 20:43:45 -0400
Message-ID: <7135.1317084225@sss.pgh.pa.us> (raw)
In-Reply-To: <1317083058-sup-9596@alvh.no-ip.org>
References: <5291.1316980809@sss.pgh.pa.us>
<20110926100653.4D3BC14A143@mail.netbsd.org>
<8244.1317054397@sss.pgh.pa.us>
<1317070986-sup-4844@alvh.no-ip.org>
<2126.1317073572@sss.pgh.pa.us>
<6382.1317081585@sss.pgh.pa.us>
<1317083058-sup-9596@alvh.no-ip.org>
Alvaro Herrera <alvherre@commandprompt.com> writes:
> To be honest, I panicked for a second when I saw the new
> SnapshotResetXmin call, before I realized that it wasn't necessary
> before. The serializable case makes more sense the patched way, I
> think.
Yeah, in the old coding, SnapshotResetXmin would have happened
implicitly at the last UnregisterSnapshot call. In this arrangement,
the "last UnregisterSnapshot" is going to be the manual one in
AtEOXact_Snapshot, so we need a manual SnapshotResetXmin there too.
I chose to put it at the bottom of the routine so that it's guaranteed
to fire even if the RegisteredSnapshots count was corrupted, but that's
just paranoia.
regards, tom lane
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: tgl@sss.pgh.pa.us, alvherre@commandprompt.com, yamt@mwd.biglobe.ne.jp, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #6218: TRAP: FailedAssertion( "!(owner->nsnapshots == 0)", File: "resowner.c", Line: 365)
In-Reply-To: <7135.1317084225@sss.pgh.pa.us>
References: <5291.1316980809@sss.pgh.pa.us> <20110926100653.4D3BC14A143@mail.netbsd.org> <8244.1317054397@sss.pgh.pa.us> <1317070986-sup-4844@alvh.no-ip.org> <2126.1317073572@sss.pgh.pa.us> <6382.1317081585@sss.pgh.pa.us> <1317083058-sup-9596@alvh.no-ip.org> <7135.1317084225@sss.pgh.pa.us>
* 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