model-writtenrun 9395 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C reported that setting default_table_access_method through PGOPTIONS could make pg_basebackup fail because its connection had no selected database, and supplied a patch to skip catalog validation when MyDatabaseId is invalid #1.
- Haribabu Kommi reproduced the failure and confirmed that the patch fixed it #2.
- Michael Paquier supplied a reproduction using a second heap access method and questioned whether validation should instead be deferred until table creation, since configuration reloads could already leave an unchecked value #3.
- Dmitry Dolgov identified the same missing database guard in default_tablespace #5; Andres Freund rejected removing validation in isolation and clarified that every use must still check potentially stale or previously unchecked values #6 #7.
- Michael Paquier's testing also exposed the older default_text_search_config failure #9, and Andres Freund initially planned to fix and backpatch that separately #10.
- Andres Freund committed fff2a7d7bd using the guard from #1, extending it to default_tablespace, temp_tablespaces, and default_text_search_config; he explained that the duplicated code made splitting the fixes unnecessary #12.
- The fix was landed by the thread's end, with Michael Paquier acknowledging the result #13; Andres Freund left a separate concern about check_timezone calling interval_in() in the postmaster for possible future work #12.