model-writtenrun 2715 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mihail Nikalayeu reported that pgbench could execute statements inside a true nested \if even when its enclosing \if was false, demonstrating an unexpectedly executed DROP TABLE in #1.
- The patch in #1 makes nested \if commands in false branches push IFSTATE_IGNORED and adds a regression test in a separate test script.
- Tom Lane accepted the code fix but proposed moving the test into the existing server test script to avoid starting an additional server for every test run #2.
- Tom Lane also identified missing coverage for nested \if commands in IFSTATE_IGNORED/IFSTATE_ELSE_FALSE states and said he would extend the test before committing #2.
- 530f89e648 landed the fix from #1 with the test relocation, additional coverage, and a comment cleanup, completing the changes planned in #2 and backpatching them to all supported branches.