Mar 2026

1 commit
plpgsql: optimize "SELECT simple-expression INTO var".
20 Mar 2026Tom Lanemaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #50 of 1 reviewer saw the final version

The commit retains the fast path, callback framework, and pg_stat_statements changes from #5, but expands the callback's syntax-error handling and separates expression evaluation from assignment so the callback covers only evaluation. It adds regression tests in plpgsql_simple.sql and its expected output; Tom explains these committer changes in #6, and the commit credits him as author.

  • Pavel Stehulesaw an earlier versiontrailerPavel confirmed the speedup and endorsed the original patch in #3, then supplied the error-context revisions #4 #5, before Tom made the moderate evaluation-versus-assignment changes described in #6.

Credits across 1 commit

Author
Tom Lane1
Reviewer
Pavel Stehule1
Committer
Tom Lane1