public inbox for [email protected]
help / color / mirror / Atom feedFrom: =?utf-8?B?Y2NhNTUwNw==?= <[email protected]>
To: =?utf-8?B?cGdzcWwtaGFja2Vycw==?= <[email protected]>
To: =?utf-8?B?ZGFuaWVs?= <[email protected]>
Subject: Unexpected message truncation in WaitForAllTransactionsToFinish
Date: Fri, 5 Jun 2026 16:30:51 +0800
Message-ID: <[email protected]> (raw)
Hi,
In WaitForAllTransactionsToFinish():
```
char activity[64];
int rc;
/* Oldest running xid is older than us, so wait */
snprintf(activity,
sizeof(activity),
"Waiting for current transactions to finish (waiting for %u)",
waitforxid);
pgstat_report_activity(STATE_RUNNING, activity);
```
The buffer is not big enough to hold the message if the 'waitforxid' is too big.
How about changing the message to this:
"Waiting for transactions older than %u to finish"
--
Regards,
ChangAo Chen
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Unexpected message truncation in WaitForAllTransactionsToFinish
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox