model-writtenrun 8526 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li proposed avoiding repeated prefix scans in appendStringLiteralDQ(), while noting that typical pg_dump usage would see little performance benefit #1.
- The attached patch resumes each delimiter search at the previous match because extending a candidate cannot introduce a match before that position #1.
- Heikki Linnakangas extended the optimization to the similar loop in pg_get_functiondef() and reported that he had pushed the change #2.
- The patch from #1 landed as 514bfe2c6d, with naming and comment adjustments plus the additional backend optimization.
- Chao Li thanked Heikki for applying the patch, closing the thread with the proposed work committed and no outstanding requests #3.