Sep 2020

3 commits
Add for_each_from, to simplify loops starting from non-first list cells.
29 Sep 2020Tom Lanemaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13.1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #8

The commit preserves the for_each_from() implementation, caller conversions, and const qualifications from #8. It additionally removes list_third_cell() and list_fourth_cell() from src/include/nodes/pg_list.h, as proposed in #7.

Minor mop-up for List improvements.
28 Sep 2020Tom Lanemaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Tom reported this already-committed cleanup in #5, without posting a matching patchset. The commit replaces eight written-out head/tail accesses with linitial()/llast() variants in src/backend/catalog/objectaddress.c, src/backend/commands/sequence.c, and src/backend/nodes/list.c.

Improve pg_list.h's linitial(), lsecond() and co macros
28 Sep 2020David Rowleymaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #11 of 1 reviewer saw the final version

The commit retains the linitial() through lfourth() changes from #1, but replaces the proposed double-evaluating llast() macros with a new list_last_cell() inline function. David confirmed applying this response to Tom's review and committing it in #3.

  • Tom Lanesaw the final versiontrailerTom identified the double-evaluation hazard in #2 and explicitly approved the committed inline-function solution in #4.

Credits across 3 commits

Author
David Rowley1
Tom LaneLLM1
Reviewer
Tom Lane1
Committer
Tom Lane2
David Rowley1

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