txn WARN (primary, system@local, endpoint=/tmp/.s.KINGBASE.54321,
2026-12-02T15:14:41Z)
[WARN] txn.long session 92181 has had a transaction open for 2s, now idle in
transaction
verify: kbdiag session 92181 # what it is running, which locks it holds,
whether it blocks anyone
[WARN] txn.prepared two-phase transaction kbdiag_txn_2pc_day3 prepared 1s ago
and not finished, holding back the vacuum horizon
verify: kbdiag txn --json # check the 2PC coordinator in database test for
the intended outcome before COMMIT PREPARED or ROLLBACK PREPARED
[OVERVIEW]
oldest observed xid/xmin : 6641
+- horizon holder : slot repmgr_slot_2 xmin
[OPEN TRANSACTIONS]
open : 2 | hidden/untracked without visible xid : 0
+- PID 92181 | idle in transaction | xact 2s
> xid=6681 xmin=- | system/test
> UPDATE public.kb_txn_day3 SET val='held' WHERE id=1;
+- PID 92179 | idle in transaction | xact 2s
> xid=- xmin=6681 | system/test
> SELECT count(*) FROM public.kb_txn_day3;
[PREPARED TRANSACTIONS]
prepared : 1
Check the 2PC coordinator before deciding to commit or roll back.
+- 2PC | xid 6682 | age 1s
> gid=kbdiag_txn_2pc_day3 | system/test
[NEXT]
- inspect horizon/transaction: kbdiag session 92181
- inspect slot horizon: kbdiag slots
- check 2PC coordinator before commit/rollback: kbdiag txn --json