model-writtenrun 5823 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robert Haas proposed removing datlastsysoid after finding that dropping pg_dump support for pre-9.2 servers had eliminated its remaining consumers, leaving a catalog value maintained for no purpose #1.
- Tom Lane endorsed the patch and added that datlastsysoid did not correspond to the system OID ranges defined in access/transam.h #2.
- Robert committed the patch from #1 with an added catalog-version bump and expanded commit message as ab4fd4f868, then announced completion #3.
- Four months later, Dave Page reported that pgAdmin used the removed value in over 300 places and asked how to identify system OIDs for PostgreSQL 15 #4.
- David Steele described pgBackRest's replacement: classify OIDs below FirstNormalObjectId, 16384, as system OIDs, since PostgreSQL 15's fixed low template-database OIDs made the old initdb query unsuitable; Dave accepted this approach #5 #6.
- Tom explained that raising the system OID boundary would be painful for pg_upgrade and suggested eventual uniqueness per catalog instead of global uniqueness; David acknowledged that approach while valuing globally unique OIDs for catching incorrect joins #7 #8.
- Alvaro Herrera suggested preserving most global uniqueness by giving pg_proc its own OID counter, and David supported the compromise; the removal remained committed, with no follow-up patch and the future OID allocation policy left open #9 #10.