- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit0bd762e
committed
Fix incorrect WAL description for PREPARE TRANSACTION record.
Since commit8b1dccd, the PREPARE TRANSACTION WAL record includesinformation about dropped statistics entries. However, the WAL resourcemanager description function for PREPARE TRANSACTION record failed toparse this information correctly and always assumed there wereno such entries.As a result, for example, pg_waldump could not display the droppedstatistics entries stored in PREPARE TRANSACTION records.The root cause was that ParsePrepareRecord() did not set the number ofstatistics entries to drop on commit or abort. These values remainedzero-initialized and were never updated from the parsed record.This commit fixes the issue by properly setting those values during parsing.With this fix, pg_waldump can now correctly report dropped statisticsentries in PREPARE TRANSACTION records.Back-patch to v15, where commit8b1dccd was introduced.Author: Daniil Davydov <3danissimo@gmail.com>Reviewed-by: Fujii Masao <masao.fujii@gmail.com>Discussion:https://postgr.es/m/CAJDiXgh-6Epb2XiJe4uL0zF-cf0_s_7Lw1TfEHDMLzYjEmfGOw@mail.gmail.comBackpatch-through: 151 parent06450c7 commit0bd762e
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
252 | 252 |
| |
253 | 253 |
| |
254 | 254 |
| |
| 255 | + | |
| 256 | + | |
255 | 257 |
| |
256 | 258 |
| |
257 | 259 |
| |
|
0 commit comments
Comments
(0)