model-writtenrun 6215 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed clearer PL/pgSQL errors in #1 because SELECT INTO was misleadingly rejected as not being SELECT and long embedded query text obscured the actual error.
- The patch in #1 distinguished SELECT INTO explicitly and moved query and expression text into error context, retaining useful diagnostic information while keeping primary messages short.
- David G. Johnston recommended back-patching to help novice users in #2, and Pavel Stehule supported PostgreSQL 14 inclusion after describing the patch as low risk in #3.
- Robert Haas added his endorsement in #4, the final thread message; no revised attachment or further unresolved objection appears.
- Tom Lane subsequently committed 26ae660903, preserving the attached patch and adding a SELECT INTO-specific SPI cursor diagnostic, with a backport to PostgreSQL 14; the commit explanation declined older branches to avoid changing their established behavior.