model-writtenrun 1460 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pavel Stehule reported that VACUUM inside a procedure misleadingly says it cannot run from a function and proposed mentioning procedures in #1; jian he endorsed the wording, pointed to similar WAIT FOR text, and suggested tests in #2.
- Pavel supplied the error-message change with a procedure regression test in #3, and Andreas Karlsson tested it against other prohibited commands and recommended the shorter wording “function or procedure” in #4.
- Marcos Pegoraro noted that anonymous blocks are also affected and proposed identifying the actual block type in #5; Pavel considered the broader term “routine” in #6, while Andreas favored explicit, simple wording in #7.
- Tom Lane explained that the error-reporting function lacks ready access to the block type, favored adding only “or procedure,” considered the new regression test unnecessary, and proposed improving WAIT FOR grammar in #8; Andreas agreed in #9.
- Tom's revised patch #10 combined the wording improvements, dropped the added procedure test, and corrected existing subscription and recovery test expectations; Andreas approved it in #11.
- The final patch #10 landed unchanged as 54315fde73, crediting Pavel as author, and Tom's push confirmation #12 closed the thread with no outstanding patch work.