diff options
| author | Heikki Linnakangas | 2024-12-21 21:42:39 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2024-12-21 21:42:52 +0000 |
| commit | 7cfdb4d1e778349b47e34413a26e931d9b07dda6 (patch) | |
| tree | b42b29379439c0832f01cd8f1bfe5bc92f36cfa5 /contrib/jsonb_plperl | |
| parent | 0350b876b074dc307b82ba18cd3c7cad46066baf (diff) | |
Update TransactionXmin when MyProc->xmin is updated
GetSnapshotData() set TransactionXmin = MyProc->xmin, but when
SnapshotResetXmin() advanced MyProc->xmin, it did not advance
TransactionXmin correspondingly. That meant that TransactionXmin could
be older than MyProc->xmin, and XIDs between than TransactionXmin and
the real MyProc->xmin could be vacuumed away. One known consequence is
in pg_subtrans lookups: we might try to look up the status of an XID
that was already truncated away.
Back-patch to all supported versions.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/d27a046d-a1e4-47d1-a95c-fbabe41debb4@iki.fi
Diffstat (limited to 'contrib/jsonb_plperl')
0 files changed, 0 insertions, 0 deletions
