Reword activity message to avoid truncation
Daniel Gustafsson <dgustafsson@postgresql.org>
Author:
Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2026-06-05T15:25:56Z
Releases:
19 (unreleased)
Reword activity message to avoid truncation The message sent to pg_stat_activity when waiting for transactions to end was long enough that it could get truncated when the xid included in the string grew large. Fix by rewording to avoid truncation, using a similar message in the logical replication code as inspiration. Author: Daniel Gustafsson <daniel@yesql.se> Reported-by: ChangAo Chen <cca5507@qq.com> Discussion: https://postgr.es/m/tencent_47CA9CE2F91FF4D81D875E162AD69AA4900A@qq.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/datachecksum_state.c | modified | +1 −1 |
Discussion
- Unexpected message truncation in WaitForAllTransactionsToFinish 2 messages · 2026-06-05