model-writtenrun 5186 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut questioned why pg_walinspect calculated percentages using double but returned float4, pointing to pgstattuple’s float8 interface as a consistent alternative in #1.
- Bharath Rupireddy agreed that the conversion had no specific justification and submitted two independent patches in #2: one exposing pg_walinspect percentages as float8, and another changing pgstattuple’s scanned_percent storage from uint64 to double.
- Peter committed the pg_walinspect fix as 57796a0f15, updating the SQL declarations, datum conversions, and documentation; the change also received a stable-branch backport.
- Peter committed the pgstattuple fix as 07d8af5e5e, adding a change from 100 to 100.0 in the calculation so the new double field would actually retain fractional percentages.
- Peter confirmed both fixes were complete in #3 and explained that he did not backpatch the pgstattuple change because removing the previous truncation would alter behavior, while the old results were not otherwise wrong.