Feb - Mar 2022

6 commits
Simplify SRFs using materialize mode in contrib/ modules
8 Mar 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #221 of 1 reviewer saw the final version

The eight-file contrib conversion matches #22, with only the new comment in contrib/amcheck/verify_heapam.c collapsed onto one line. Michael confirms applying it in #23.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Create routine able to set single-call SRFs for Materialize mode
7 Mar 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #200 of 2 reviewers saw the final version

Combines both patches in #20, crediting Melanie Plageman and Michael Paquier. Beyond comment and include-order edits, src/backend/utils/fmgr/funcapi.c moves tuple-descriptor creation and blessing inside the per-query memory context; the xlogfuncs.c conversion disappears because intervening base changes made that function return a record directly.

  • Álvaro Herrerasaw an earlier versiontrailerIn #2, he endorsed introducing a helper and proposed its name, optional descriptor handling, and caller-owned ReturnSetInfo assignments, before substantial later redesign.
  • Justin Pryzbysaw an earlier versiontrailerHe corrected random-access handling, reviewed NULL checks and cleanup opportunities, and marked the patch ready in #12, before Michael's flags-based redesign.
Simplify more checks related to set-returning functions
24 Feb 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1Also in: Uniforms the errors msgs at tuplestore paths (not this thread)
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #170 of 1 reviewer saw the final version

The commit takes the four-file SRF-check normalization patch from #17, with whitespace cleanup and an additional expectedDesc-check removal in contrib/pageinspect/brinfuncs.c confirmed in #18. This disagrees with the source attribution in thread #45557: its parallel proposal #499891 predates the matching patchset here, and the commit explicitly credits Michael Paquier's independent implementation alongside Ranier Vilela.

  • Justin Pryzbysaw an earlier versionLLM analysis, 79% sureIn #15, he examined expectedDesc requirements in the precursor patch and supplied the PL/Perl precedent for checking only when needed, before the broader normalization in #17.
Clean up and simplify code in a couple of set-returning functions
24 Feb 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #170 of 1 reviewer saw the final version

Takes the first cleanup patch from #17 and the pg_options_to_table() inlining previously carried in its helper patch. The committed foreign.c version also switches back from the per-query context before constructing row values, and the commit credits Melanie Plageman and Michael Paquier.

  • Justin Pryzbysaw an earlier versiontrailerHis reviews in #10, #12, and #15 examined the precursor's inconsistencies and separation of fixes, before Michael added the descriptor and pg_config() restructuring.
Fix inconsistencies in SRF checks of pg_config() and string_to_table()
19 Feb 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #132 of 2 reviewers saw the final version

Extracts the pg_config() and text_to_table() expectedDesc safeguards from #13, retaining standalone SRF validation and using existing FEATURE_NOT_SUPPORTED diagnostics instead of the patch's separate protocol-error messages. The commit explicitly identifies this as an extraction from Melanie's larger patch.

  • Justin Pryzbysaw the final versiontrailerHe specifically examined these missing NULL checks and proposed separating them in #10, #12, and #15, with only extraction and diagnostic adjustments before this focused fix landed.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Remove all traces of tuplestore_donestoring() in the C code
17 Feb 2022Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1Also in: Small and unaffected typo in pg_logical_slot_get_changes_guts() (modified before commit)

Credits across 6 commits

Author
Melanie Plageman4
Michael Paquier3
Ranier Vilela1
Tatsuhito Kasahara1
Reviewer
Justin Pryzby3
Michael Paquiercommitter3
Alvaro Herrera1
Reported by
Justin Pryzby1
Tatsuhito Kasahara1
Committer
Michael Paquier6