From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sean Rhea <srhea@cisco.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: LISTEN fails to "access status of transaction"
Date: Thu, 19 Jun 2014 01:32:20 -0400
Message-ID: <15644.1403155940@sss.pgh.pa.us> (raw)
In-Reply-To: <CABX3HJZrC6CVJip0Wt6vTSst7=wTzUhg1HRgGjkGGitb3Mye2Q@mail.gmail.com>
References: <CABX3HJZrC6CVJip0Wt6vTSst7=wTzUhg1HRgGjkGGitb3Mye2Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Sean Rhea <srhea@cisco.com> writes:
> We think we're running into a bug in the pg_notify code.
> We've only seen this bug twice. We can't reproduce it at will, but once it
> starts happening it's 100% reproducible until we implement the workaround
> as described below. Hopefully the information here is enough for you to
> work with, and if not, we understand.
> The symptom we see is that any client attempting to call "LISTEN <channel
> name>;" receives an error like this one:
> ERROR: could not access status of transaction 3767760004
> DETAIL: Could not open file "pg_clog/0E09": No such file or directory.
Hm. This appears to indicate that there's a sending-transaction XID in
the notify queue that's so old that the corresponding clog entry has
been recycled. I don't think there's any direct interlock between the
notify queue contents and the clog recycling mechanisms; but we don't
recycle clog until a VACUUM FREEZE has frozen all older tuples, and
normally that's hundreds of millions of transactions in the past.
So I wonder if you (a) are aggressively forcing freezing, and/or
(b) have some listening session that has been idle-in-transaction
for, um, a very long time. Even if you do, it's not quite clear how
we could have advanced the freeze horizon far enough to allow this
problem to occur: I'd have thought that such an open transaction would
also block freezing. But there's clearly *something* you're doing
that's outside the norm.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, srhea@cisco.com
Subject: Re: LISTEN fails to "access status of transaction"
In-Reply-To: <15644.1403155940@sss.pgh.pa.us>
References: <CABX3HJZrC6CVJip0Wt6vTSst7=wTzUhg1HRgGjkGGitb3Mye2Q@mail.gmail.com> <15644.1403155940@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