Re: Some pgq table rewrite incompatibility with logical decoding? - Mailing list pgsql-hackers

From Jeremy Finzel
Subject Re: Some pgq table rewrite incompatibility with logical decoding?
Date
Msg-id CAMa1XUhGRe+xvUrNAA0tAaPKFUhHz02eM83mBwOuvrMaa5K7wg@mail.gmail.com
Whole thread Raw
In response to Re: Some pgq table rewrite incompatibility with logical decoding?  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: Some pgq table rewrite incompatibility with logical decoding?
List pgsql-hackers
I don't think that's true, for two reasons.

Firstly, I don't think pgq updates catalogs directly, it simply truncates the queue tables when rotating them (which updates the relfilenode in pg_class, of course).

Secondly, we're occasionally seeing this on systems that do not use pgq, but that do VACUUM FULL on custom "queue" tables. The symptoms are exactly the same ("ERROR: could not map filenode"). It's pretty damn rare and we don't have direct access to the systems, so investigation is difficult :-( Our current hypothesis is that it's somewhat related to subtransactions (because of triggers with exception blocks).

Jeremy, are you able to reproduce the issue locally, using pgq? That would be very valuable.

We have tried but have been unable to reproduce it.  If we do encounter it again, we will plan on reporting back and seeing if we can do some deep debugging.

Thanks,
Jeremy 

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: libpq compression
Next
From: Robert Haas
Date:
Subject: Re: FailedAssertion on partprune