Jul - Aug 2022

2 commits
Check maximum number of columns in function RTEs, too.
1 Aug 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15beta3REL_14_STABLE14.5REL_13_STABLE13.8+3 more
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Neither attachment modifies src/backend/parser/parse_relation.c; this commit implements the follow-up discussion in #10, #12, #13, and #14. It checks function column-definition lists, merged function results, and table-function results, extending beyond the inline proposal in src/backend/parser/parse_clause.c.

  • Richard Guosaw the final versionLLM analysis, 97% sureRichard proposed an inline column-count check in #12 and corrected its limit to MaxHeapAttributeNumber in #13, which Tom accepted in #14 and used in the commit.
In transformRowExpr(), check for too many columns in the row.
29 Jul 2022Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15beta3REL_14_STABLE14.5REL_13_STABLE13.8+3 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #61 of 1 reviewer saw the final version

The commit preserves the src/backend/parser/parse_expr.c hunk from #6 exactly and adds a one-line SQLSTATE adjustment in src/backend/parser/parse_node.c from PROGRAM_LIMIT_EXCEEDED to TOO_MANY_COLUMNS, already proposed in that message.

  • Richard Guosaw the final versionLLM analysis, 100% sureRichard questioned the original boundary check in #4, discussed the tuple limit in #7, and explicitly approved the replacement patch while asking about other expression types in #8.

Credits across 2 commits

Author
Tom LaneLLM1
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.