Apr 2026

1 commit
Fix estimate_array_length error with set-operation array coercions
11 Apr 2026Richard Guomaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.4REL_17_STABLE17.10
LLM analysis, 100% suremodified before commitlight changesfrom patchset #51 of 1 reviewer saw the final version

The commit preserves #5's estimate_array_length guard in src/backend/utils/adt/selfuncs.c, returning 10 for Vars with varno 0 before statistics lookup. Changes are limited to comments, formatting, the commit message, and converting the union.sql regression query to EXPLAIN (VERBOSE, COSTS OFF) with corresponding expected output, as confirmed in #6.

  • Richard Guosaw the final versiontrailerRichard endorsed the inline fix and suggested a simpler reproducer and comments in #3, then reviewed and committed the attached patch #5 with explanatory and test tweaks reported in #6.

Credits across 1 commit

Author
Tender Wang1
Reviewer
Richard Guo1
Reported by
Justin Pryzby1
Committer
Richard Guo1