Mar 2020

5 commits
Back-patch addition of stack overflow and interrupt checks for lquery.
31 Mar 2020Tom LaneREL_12_STABLE12.3REL_11_STABLE11.8REL_10_STABLE10.13REL9_6_STABLE9.6.18REL9_5_STABLE9.5.22
LLM analysis, 99% surewritten from the discussion, no matching patch

Adds miscadmin.h, check_stack_depth(), and CHECK_FOR_INTERRUPTS() to the older lquery matcher without adopting the attached matcher rewrite. Tom describes the final testing and stable-branch stack-overflow protection in #25; no attachment contains this standalone fix.

Fix lquery's NOT handling, and add ability to quantify non-'*' items.
31 Mar 2020Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #18

Commits the NOT-handling and quantifier component of #18, with checkCond further simplified into the iterative form posted in #22 and an interrupt check added during final testing in #25. Tom authored the substantial rewrite in #16, with Filip's original fix and Nikita's loop changes also credited as authorship.

Improve error messages in ltree_in and lquery_in.
31 Mar 2020Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #18

Commits only the input-error cleanup component of #18; applying that attachment to the commit's parent reproduces all four committed files byte-for-byte. Nikita resent Tom's patch from #17 unchanged, explicitly confirming this in #18.

Fix lquery's behavior for consecutive '*' items.
28 Mar 2020Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #141 of 3 reviewers saw the final version

Takes the consecutive-star component of #14, retaining its accumulated bounds and tests while replacing SomeStack with explicit checkCond arguments, adding comments, and tightening a FieldNot guard. Tom confirms committing Nikita's two fixes in #15.

  • Alexander Korotkovsaw an earlier versionLLM analysis, 99% sureQuestioned the consecutive-star bounds and parsing invariants in #6, before #14 changed the bounds and the committer refactored checkCond.
  • Tomas Vondrasaw an earlier versionLLM analysis, 99% sureChallenged the matching caps and suggested a limit based on available input in #12, preceding the tree-length bounds in #14 and the committed function refactoring.
  • Tom Lanesaw the final versioncommittercommitted the patch
Protect against overflow of ltree.numlevel and lquery.numlevel.
28 Mar 2020Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+5 more
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #141 of 4 reviewers saw the final version

Takes the overflow component of #14, including ltree_concat and quantifier checks, with added negative-result checks, consistent error wording, and corrected size-limit documentation. The commit explicitly credits Benjie Gillam and Tomas Vondra as reviewers, and #15 confirms the landing.

  • Alexander Korotkovsaw an earlier versionLLM analysis, 100% sureIdentified redundant allocation-size bounds in #6, which #14 simplified while also adding new overflow cases.
  • Benjie Gillamsaw an earlier versionLLM analysis, 100% sureReported successful regression and manual testing and identified the misleading documented size limit in #10, before concatenation and quantifier checks were added in #14.
  • Tomas Vondrasaw an earlier versionLLM analysis, 100% sureReviewed the overflow limits and requested justification for PG_UINT16_MAX in #12, answered with field-width comments and expanded checks in #14.
  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 5 commits

Author
Nikita GlukhovLLM2
Tom LaneLLM2
Reviewer
Tom Lanecommitter2
Committer
Tom Lane5

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