Jan 2024

1 commit
Consider the "LIMIT 1" optimization with parallel DISTINCT
31 Jan 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #11 of 1 reviewer saw the final version

The commit preserves the planner logic from #1 in src/backend/optimizer/plan/planner.c, expanding only its explanatory comments. In src/test/regress/sql/select_distinct.sql and its expected output, it removes the result-checking query and parallel_tuple_cost setting and changes the filter constant; David Rowley confirms the test removal and push in #3.

  • David Rowleysaw the final versiontrailerDavid Rowley assessed parallel-plan selection in #2, then reported testing, simplifying the regression case, and committing the patch in #3.

Credits across 1 commit

Author
Richard Guo1
Reviewer
David Rowley1
Committer
David Rowley1