model-writtenrun 5874 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhijie Hou proposed delaying two catalog lookups until the relation synchronization cache needs rebuilding, supplying a patch and profiles showing their cost when processing changes to unpublished tables #1.
- Kyotaro Horiguchi supported the patch after benchmarking showed the values were almost never needed, and Euler Taveira reported that it worked for him; both favored narrower variable scopes #2 #3.
- Michael Paquier requested profiles after applying the patch and proposed backpatching after the holiday period; Hou supplied profiles showing get_rel_sync_entry() dropping from 11.84% to 1.80% and reported no other standout bottleneck #4 #5.
- After his own measurements confirmed a noticeable improvement, Michael committed the original patch unchanged as 6ce16088bf and announced backpatches through PostgreSQL 13 #6.
- Hou thanked Michael for committing, and Amit Langote subsequently agreed that the declarations had been misplaced; the thread ended with the change landed and no outstanding revisions #7 #8.