model-writtenrun 32 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeevan Chalke reported that unused terminator slots and EOF both use token zero, causing read_sql_construct() to skip its helpful missing-terminator error and produce generic or misleading errors #1.
- Jeevan supplied guards requiring optional terminators to be nonzero, with regression cases for incomplete IF, WHILE, CASE, and assignment constructs #1.
- Because external tools and tests might depend on the existing error text, Jeevan preferred limiting the change to master, while also mentioning the unreleased v19 as a possibility #1.
- Heikki Linnakangas retained the implementation, moved the tests into the PL/pgSQL-specific suite, and removed the WHILE and CASE variants because they exercised the same code path #2.
- The patch landed with those light test changes as 46d7c16ca1, and Heikki's final reply confirmed commitment to master with no further work identified #2.