model-writtenrun 4635 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bharath Rupireddy opened the thread with a patch replacing separate till_end_of_wal functions with optional NULL end positions, aiming to reduce duplicated code and simplify the SQL interface #1.
- Julien Rouhaud supported consolidation but objected to making old entry points silently return NULL, while Michael Paquier argued that existing extension installations must keep working and that the unreleased version 1.1 could absorb the change without introducing 1.2 #3 #9 #11 #12.
- Discussion of automatically finding the oldest WAL exposed timeline-ordering problems identified by Matthias van de Meent; Bharath deferred automatic start-position discovery and timeline-aware inspection to future work #5 #7 #13.
- Bharath's revised patch preserved working legacy functions, used the 1.1 upgrade path, expanded validation tests and temporarily returned NULL for reversed ranges while retaining optional end positions #13.
- Michael proposed keeping the functions STRICT, accepting future end positions by clamping them to available WAL and retaining errors for reversed bounds; after Julien discussed default arguments, Michael separated that convenience feature from the current work, and Bharath implemented the narrower design #15 #17 #19 #20 #21.
- Michael first extracted and reorganized the regression-test work from Bharath's patch, adding missing boundary cases and upgrade coverage in 1f282c24e4, then posted the remaining functional change #21 #22.
- In that remainder, Michael fixed the legacy statistics function's boolean argument index, moved argument extraction back into SQL entry points, simplified ValidateInputLSNs and ensured each call obtained its current WAL position once #22.
- Bharath then restored documentation explaining how future end positions provide end-of-WAL scans, standardized diagnostics and strengthened tests; Michael insisted on retaining replication-slot cleanup and separating unrelated test changes, leading to a two-patch submission #23 #24 #25.
- The functional patch landed as 5c1b662807 from #25, with its C implementation intact and light documentation and test edits; it removed the redundant SQL functions from version 1.1 while preserving their compatibility entry points.
- Andres Freund reported that the new extension-object listing failed under Windows with ICU because function names sorted differently, and supplied the locale details needed to diagnose the failure #26 #29.
- Michael confirmed that the main landing retained Bharath's explanation of end-of-WAL scans with revised wording and simplified the compatibility tests, leaving the separate test-cleanup patch outstanding #28.
- Michael considered removing the collation-sensitive listing, but Bharath supplied an inline query with COLLATE "C"; Michael adopted a simplified direct SELECT for the version-1.0 listing in e643a315fc, retaining the later-version listing #30 #31 #32 #33.
- Bharath rebased the remaining test cleanup, and Michael committed it with minor comment and spacing adjustments as 4f1882b960, preserving stronger successful-scan assertions and direct queries for expected failures #34 #35.
- By the final message, all submitted work had landed; optional default end positions and automatic or timeline-aware start-position discovery remained outside the completed series #35 #20 #13.