model-writtenrun 2938 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Murat Efendioğlu reported a PostgreSQL 17 regression when setting default_text_search_config to an unqualified name such as german, with pg_catalog.german providing a workaround #1.
- Erik Wienhold reproduced the crash when connecting to the affected database and traced it to processing database settings before InitializeSearchPath(), leaving SearchPathCacheContext null; he suggested possibly bypassing the cache during early initialization #2 #3.
- Tom Lane confirmed the initialization-order problem and considered moving InitializeSearchPath() earlier, but questioned the fragility of the cache-validity assumptions #5; Murat then confirmed that connecting after changing the setting triggered the failure #6.
- Jeff Davis supplied a patch that initializes the cache's memory context on demand and clears validity flags before rebuilding the cache, while identifying check_search_path()'s indirect user-ID readiness check as possible follow-up work #7.
- Jeff's patch #7 landed as a9ed7d9449, retaining the existing SearchPathCache null-pointer guard that the attachment had removed.
- Erik reported that regression tests passed and the crash disappeared #9, but his report followed the commit timestamp and therefore does not qualify as a suggested pre-commit review.
- Jeff confirmed that the fix was committed and backported to PostgreSQL 17 #10; the reported crash was resolved, while the possible check_search_path() cleanup mentioned in #7 had no further outcome in this thread.