Re: TRAP: FailedAssertion("HaveRegisteredOrActiveSnapshot()", File: "toast_internals.c", Line: 670, PID: 19403)
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, Justin Pryzby <pryzby@telsasoft.com>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Erik Rijkers <er@xs4all.nl>, Matthias van de Meent <boekewurm+postgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-04-19T11:39:57Z
Lists: pgsql-hackers
On Mon, Apr 18, 2022 at 4:07 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > There may be some corner cases that aren't described by any of these > three blanket scenarios, but they've got to be pretty few and far > between. My first thought whenever anything like this comes up is cursors, especially but not only holdable cursors. Also, plpgsql variables, maybe mixed with embedded COMMIT/ROLLBACK. I don't find it particularly hard to believe we have some bugs in insufficiently-well-considered parts of the system that pass around datums outside of the normal executor flow, but I don't know exactly how to find them all, either. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Fix incorrect logic in HaveRegisteredOrActiveSnapshot().
- 9f4f0a0dad4c 15.0 landed
-
Fix temporary object cleanup failing due to toast access without snapshot.
- 7c38ef2a5d6c 15.0 cited
-
Account for catalog snapshot in PGXACT->xmin updates.
- ffaa44cb559d 10.0 cited