Fix recent pg_walinspect fpi_length bug.
Peter Geoghegan <pg@bowt.ie>
Fix recent pg_walinspect fpi_length bug. Commit 0276ae42dd taught pg_walinspect's pg_get_wal_record_info() function to output NULLs rather than empty strings for its record description and block_ref output parameters. However, it inadvertently moved the function call that sets fpi_length until after it was already set. As a result, pg_get_wal_record_info() always output spurious fpi_length values of 0. Fix by switching the order back (but keep the behavioral change). Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Discussion: https://postgr.es/m/CAH2-WzkJmgSYkt6-smQ+57SxSmov+EKqFZdSimFewosoL_JKoA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_walinspect/pg_walinspect.c | modified | +7 −8 |
Discussion
- Add pg_walinspect function with block info columns 76 messages · 2023-03-01 → 2023-03-31