model-writtenrun 1059 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li proposed making three pgstat_database.c routines honor their supplied database OIDs, initially adding an early return for InvalidOid to prevent shared-relation resets from changing the current database's timestamp #1.
- Michael Paquier identified the timestamp behavior as a bug requiring backpatching through PostgreSQL 15 and explained that database OID zero represents shared objects, so the proposed early return must be removed; the connection routines retained their existing interfaces #2 #3.
- Chao removed the guard and extended the regression test to verify both shared and current database timestamps, reporting that the checks failed with the original code and initial patch but passed with the revision #4.
- Dapeng Wang tested the revision, reported all 247 regression tests passing, and manually verified that resetting a shared relation updated the shared database timestamp without changing the current database timestamp #5.
- Michael committed the revised backend fix as 80156cee06, replacing the test's coalesce-based comparisons with two resets and limiting the timestamp check to database OID zero; he subsequently reported backpatching through PostgreSQL 15 #6.
- Chao thanked Michael for adjusting the test and pushing the patch, closing the thread with the fix landed and no outstanding work stated #7.