Dec 2022

1 commit
Fix assert in BRIN build_distances
30 Dec 2022Tomas Vondramaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.2REL_14_STABLE14.7
LLM analysis, 100% surewritten from the discussion, no matching patch

Following the crash report in #18, Tomas diagnosed a legitimate single-range result in #19; the commit relaxes build_distances's assertion and returns NULL for that case. He confirmed both changes in #25, with no matching attached patchset.

Apr 2021

5 commits
Fix bug in brin_minmax_multi_union
4 Apr 2021Tomas Vondramaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Jaime reported the autovacuum-related crash in #15, and Tomas explained the committed fix in #16. The one-line change saves sort_expanded_ranges's returned count in brin_minmax_multi_union and is absent from #4.

Fix order of parameters in BRIN minmax-multi calls
4 Apr 2021Tomas Vondramaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

In #16, Tomas explicitly identifies the swapped-operator-parameter bug as an additional discovery made while fixing this thread's reports. The commit changes comparison strategies and argument order in brin_minmax_multi_consistent; neither change appears in #4.

Fix BRIN minmax-multi distance for inet type
4 Apr 2021Tomas Vondramaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #40 of 1 reviewer saw the final version

The commit takes the inet portion of #4, replacing whole-byte truncation with bit-level masking of allocated address copies in brin_minmax_multi_distance_inet. It also restores divisor 256 following Zhihong's review in #8 and Tomas's acknowledgment in #9.

  • Zhihong Yusaw an earlier versiontrailerZhihong questioned address access in #5 and caught the incorrect divisor in #8, before the committed version reworked the masking logic.
Fix BRIN minmax-multi distance for timetz type
4 Apr 2021Tomas Vondramaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #41 of 1 reviewer saw the final version

The commit extracts the timetz hunk from #4, preserving timezone-aware subtraction in brin_minmax_multi_distance_timetz. Its only edit to that hunk algebraically regroups the time and timezone differences.

  • Jaime Casanovasaw the final versionLLM analysis, 100% sureJaime explicitly confirmed in #7 that the attached fix resolved both his posted query and his original crash.
Fix BRIN minmax-multi distance for interval type
4 Apr 2021Tomas Vondramaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surewritten from the discussion, no matching patch0 of 1 reviewer saw the final version

Tomas diagnosed the inconsistent 31-day month assumption and proposed matching interval_cmp_value in #13, after rejecting Zhihong's uncompilable inline patch in #12. The commit implements 30-day months with integer days and a fractional-day remainder in brin_minmax_multi_distance_interval; the attached patchset contains no interval fix.

  • Jaime Casanovasaw an earlier versionLLM analysis, 88% sureJaime confirmed in #15 that changing the formula to 30-day months fixed the crash, testing the correction proposed in #13 before the committed arithmetic was reworked into days and a fractional remainder.

Credits across 6 commits

Author
Tomas VondraLLM2
Reviewer
Zhihong Yu1
Reported by
Jaime Casanova4
Committer
Tomas Vondra6

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