diff options
author | Fujii Masao | 2025-05-21 02:55:14 +0000 |
---|---|---|
committer | Fujii Masao | 2025-05-21 02:55:14 +0000 |
commit | 0bd762e81f6c73679b4f3072d9d9f359d47e43ab (patch) | |
tree | 1fa52e148cac8fd1f555bc8c33fdb5c89c57dc46 /src/interfaces/libpq/exports.txt | |
parent | 06450c7b8c70120cebe91e4b6ed3cec9d7051d0a (diff) |
Since commit 8b1dccd37c7, the PREPARE TRANSACTION WAL record includes
information about dropped statistics entries. However, the WAL resource
manager description function for PREPARE TRANSACTION record failed to
parse this information correctly and always assumed there were
no such entries.
As a result, for example, pg_waldump could not display the dropped
statistics entries stored in PREPARE TRANSACTION records.
The root cause was that ParsePrepareRecord() did not set the number of
statistics entries to drop on commit or abort. These values remained
zero-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 statistics
entries in PREPARE TRANSACTION records.
Back-patch to v15, where commit 8b1dccd37c7 was introduced.
Author: Daniil Davydov <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: https://postgr.es/m/CAJDiXgh-6Epb2XiJe4uL0zF-cf0_s_7Lw1TfEHDMLzYjEmfGOw@mail.gmail.com
Backpatch-through: 15
Diffstat (limited to 'src/interfaces/libpq/exports.txt')
0 files changed, 0 insertions, 0 deletions