pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: zeppieri@gmail.com
Subject: BUG #18394: LISTEN error: could not access status of transaction
Date: Thu, 14 Mar 2024 22:00:05 +0000
Message-ID: <18394-e7459245148578b2@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18394
Logged by:          Jon Zeppieri
Email address:      zeppieri@gmail.com
PostgreSQL version: 16.2
Operating system:   linux (debian bullseye)
Description:        

This has come up before, but it seems this bug is still around. Somehow, a
NOTIFY queue refers to an xid that's been pruned. See, for example:
-
https://www.postgresql.org/message-id/flat/VE1PR03MB531295B1BDCFE422441B15FD92499%40VE1PR03MB5312.eu...]
- https://github.com/PostgREST/postgrest/issues/3147

The result is that this happens:

    db=# listen foo;
    ERROR:  could not access status of transaction 2716782599
    DETAIL:  Could not open file "pg_xact/0A1E": No such file or
directory.

The only thing I have to add to what's been reported before is that the
LISTENing connection -- the only one I know of, at any rate -- isn't
participating in any long transactions. It issues the LISTEN statement and
then just waits, indefinitely, for notifications outside of any transaction.
But maybe there was a different different LISTENing session that I wasn't
aware of. Is there a way to query for pids that are listening to
notification channels?

- Jon



Message-ID: <18394-e7459245148578b2@postgresql.org>
Permalink:  ../18394-e7459245148578b2@postgresql.org/
Also on:    postgresql.org/message-id/18394-e7459245148578b2@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, zeppieri@gmail.com
  Subject: Re: BUG #18394: LISTEN error: could not access status of transaction
  In-Reply-To: <18394-e7459245148578b2@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