Jan 2026

16 commits
Fix two error messages in extended_stats_funcs.c
29 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

Implements the two error-message corrections announced in #139, updating extended_stats_funcs.c and expected output; no attached patch contains these corrections.

Add test doing some cloning of extended statistics data
29 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1381 of 1 reviewer saw the final version

Extracts the cloning test from #138, omitting the uncommitted expression-statistics comparisons and shortening the test as described in #139.

  • Michael Paquiersaw the final versiontrailerReviewed and simplified the cloning test before committing it, as described in #139.
Add test for pg_restore_extended_stats() with multiranges
29 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1381 of 1 reviewer saw the final version

Extracts the multirange test embedded in the MCV patch of #138, with reformatted values/output and no expression-statistics restoration.

  • Michael Paquiersaw the final versiontrailerRequested multirange coverage in #119 and split and polished the final test in #139.
Add support for "mcv" in pg_restore_extended_stats()
29 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #1381 of 1 reviewer saw the final version

Takes the MCV implementation and pg_dump support from #138, splits out its multirange test, and restores validation/test/comment fixes lost from #133, as explained in #139.

  • Michael Paquiersaw the final versiontrailerTested malformed MCV arrays, proposed removal of the redundant null array, and reconciled the final patch in #133, #134, and #139.
Fix pg_restore_extended_stats() with expressions
28 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #128

Extracts expression decoding/counting from the MCV patch in #128 and adds dedicated ndistinct/dependencies validation tests; #132 explicitly identifies the erroneous split and extraction.

Add output test for pg_dependencies statistics import
27 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1281 of 1 reviewer saw the final version

Matches the complete dependencies-output test component from #128, with an explanatory comment and SQL predicate formatting added in stats_import.sql; #130 confirms application.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Include extended statistics data in pg_dump
27 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #1251 of 1 reviewer saw the final version

Uses the pg_dump patch in #125 but limits it to ndistinct/dependencies, adopts statistics_format.h keys, and updates AdjustUpgrade.pm comments, as reported in #127.

  • Michael Paquiersaw the final versiontrailerReviewed compatibility queries, fixed table-name arguments and old-version lookups, and narrowed the committed dump support in #107, #112, and #127.
Add support for "dependencies" in pg_restore_extended_stats()
26 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1251 of 1 reviewer saw the final version

Retains the dependencies restore component of #125, moves its argument declarations into this commit, and adds documentation, diagnostics and a regression case.

  • Michael Paquiersaw the final versiontrailerReviewed and polished the dependencies component before applying it, as documented in #126 and #127.
Add test for MAINTAIN permission with pg_restore_extended_stats()
26 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1252 of 2 reviewers saw the final version

Retains the standalone MAINTAIN test in #125, correcting mistaken clear-role references and the expected output, as explained in #126.

  • Chao Lisaw the final versiontrailerReviewed the restore patch containing these permission tests in #110, before they were extracted and received test-only corrections.
  • Michael Paquiersaw the final versiontrailerAdded restore permission coverage in #106 and corrected the final test’s role/output mistakes in #126.
Fix missing initialization in pg_restore_extended_stats()
26 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

Adds the missing stxoid/stxdinherit null-flag initialization in extended_stats_funcs.c; #126 reports Michael’s post-landing discovery, and no earlier attachment contains this fix.

Add pg_restore_extended_stats()
26 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #1250 of 1 reviewer saw the final version

Combines the ndistinct-only restore component and part of the documentation from #125, removing unused statistics-kind arguments and improving diagnostics/tests before landing, as described in #126.

  • Chao Lisaw an earlier versiontrailerReviewed restore logic and return/error handling in #63 and #110, before the later kind-specific split and validation revisions.
Add test with multirange type for pg_restore_attribute_stats()
26 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.6
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1251 of 1 reviewer saw the final version

The complete multirange attribute-statistics test component in #125 is retained, with its setup/test relocated in stats_import.sql and a comment reworded; #126 confirms the separate landing.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Add routine to free MCVList
20 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #1120 of 1 reviewer saw the final version

The statext_mcv_free implementation and declaration are an unchanged extraction from Michael’s fix-up patch in #112; #115 confirms its independent application.

  • Chao Lisaw an earlier versionLLM analysis, 94% sureFlagged missing MCV/item cleanup in #110, prompting the new helper and subsequent import refactoring in #112.
Improve pg_clear_extended_stats() with incorrect relation/stats combination
16 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

Changes mismatched relation/statistics input from ERROR to WARNING and adds a regression case; #106 identifies the already-committed fix while adapting the remaining restore patch.

Add pg_clear_extended_stats()
15 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #1030 of 1 reviewer saw the final version

Retains the full clear-function implementation of #103; remaining edits are comment wrapping, catalog version, GROUP BY test output, and an added lock-level test described in #104.

  • Chao Lisaw an earlier versiontrailerFound incorrect inherited argument decoding and missing inherited=true coverage in #99, before the boolean-decoding fix and additional tests in #103.
Introduce routines to validate and free MVNDistinct and MVDependencies
15 Jan 2026Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #972 of 2 reviewers saw the final version

Extracts the four validation/free helpers from #97, renaming them statext_*, adding const qualifiers, relocating them and polishing diagnostics/comments; #98 confirms the extraction.

  • Chao Lisaw the final versiontrailerReviewed the dependency validator and suggested const qualification in #63, with the retained helper logic subsequently receiving mechanical cleanup.
  • Michael Paquiersaw the final versiontrailerExtracted and polished the validation/free routines during his backend review described in #98.

Dec 2025

2 commits
Fix typo in stat_utils.c
25 Dec 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Corrects harcoded to hardcoded in stat_utils.c after Tender Wang’s report, acknowledged in #96; there is no matching patch attachment.

  • Tender Wangsaw the final versionLLM analysis, 96% sureReported the comment typo before the commit, as credited by the commit message and acknowledged in #96.
Move attribute statistics functions to stat_utils.c
25 Dec 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #932 of 3 reviewers saw the final version

Matches the shared-helper refactoring component in #93, with additional statatt_build_stavalues/statatt_get_index_expr renames, header cleanup and documentation polishing confirmed in #94.

  • Chao Lisaw the final versiontrailerQuestioned inconsistent public-helper naming in #63, and the retained helper implementations subsequently underwent mechanical relocation, renaming and documentation changes.
  • Yu Wangno review foundtrailerThe review in #83 concerns pg_dump comment typos, with no demonstrated review of the shared-helper refactoring.
  • Michael Paquiersaw the final versiontrailerRequested relocation and documented helper contracts in #84, then polished and committed the refactoring in #94.

Nov - Dec 2025

11 commits
Improve error messages of input functions for pg_dependencies and pg_ndistinct
8 Dec 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #900 of 1 reviewer saw the final version

Combines #89 with the follow-on #90, then extends elog conversions to additional unreachable parser states and normalizes their diagnostics as described in #91.

  • Tom Lanesaw an earlier versionLLM analysis, 98% sureReported error-detail style problems in #86 and suggested elog for impossible states in #88, before the expanded conversions.
Improve test output of extended statistics for ndistinct and dependencies
5 Dec 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Applies Corey’s replace()-based formatting idea from #51 and #85 to stats_ext.sql; the commit explicitly states that Corey did not supply this patch.

  • Corey Huinkersaw the final versionLLM analysis, 98% sureProposed the compact replace()-based output format in #51, which the commit explicitly adopts.
Fix some compiler warnings
5 Dec 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #871 of 1 reviewer saw the final version

Extracts exactly the five SOFT_ERROR_OCCURRED-to-error_occurred replacements from #87, leaving its error-message edits for a later commit.

  • Tom Lanesaw the final versionLLM analysis, 97% sureReported old-GCC warnings in #86 and approved the direct state checks in #88.
Add input function for data type pg_dependencies
26 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #691 of 4 reviewers saw the final version

Matches the complete pg_dependencies input component in #69; final edits add parser comments, soft-error tests and encoding-independent test inputs, as recorded in #72.

  • Jian Hesaw an earlier versiontrailerTested dependency-number bounds and special degree values and supplied additional regression cases in #65, before later builder and subset-validation changes.
  • Chao Lisaw an earlier versiontrailerReviewed parser state, constness, diagnostics and cleanup in #63, before builder extraction and final validation changes.
  • Michael Paquiersaw the final versiontrailerReworked input validation and coverage in #49 and #69, then applied final polishing and encoding-safe tests in #72.
  • Yuefei Shisaw an earlier versiontrailerReviewed typos and temporary-string ownership in #64, before subsequent builder/memory-management and validation revisions.
Add input function for data type pg_ndistinct
26 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #691 of 4 reviewers saw the final version

Matches the complete pg_ndistinct input component in #69, with comment/style changes and extra or encoding-safe tests described in #72.

  • Jian Hesaw an earlier versiontrailerExercised malformed inputs and supplied tests/fixes in #9, #46, #50, #61, and #65, before later builder and validation changes.
  • Chao Lisaw an earlier versiontrailerReviewed parser state, constness, diagnostics and cleanup in #63, before builder extraction and final validation changes.
  • Michael Paquiersaw the final versiontrailerReworked input validation and coverage in #49 and #69, then applied final polishing and encoding-safe tests in #72.
  • Yuefei Shisaw an earlier versiontrailerReviewed typos and temporary-string ownership in #64, before subsequent builder/memory-management and validation revisions.
Rework output format of pg_dependencies
17 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #472 of 2 reviewers saw the final version

Retains the dependencies output-format component of #47, with perform.sgml presentation and output-error wording polished before the application reported in #49.

  • Jian Hesaw the final versiontrailerReviewed the output formats and corrected perform.sgml examples in #36, #37, and #44, followed only by light edits.
  • Michael Paquiersaw the final versiontrailerSplit and polished the output changes, added shared format constants, and confirmed their application in #49.
Rework output format of pg_ndistinct
17 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #472 of 2 reviewers saw the final version

Retains the ndistinct output-format component of #47; remaining differences are small documentation/header/comment edits in perform.sgml and statistics_format.h.

  • Jian Hesaw the final versiontrailerReviewed the output formats and corrected perform.sgml examples in #36, #37, and #44, followed only by light edits.
  • Michael Paquiersaw the final versiontrailerSplit and polished the output changes, added shared format constants, and confirmed their application in #49.
Fix comments of output routines for pg_ndistinct and pg_dependencies
12 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Implements the two output-routine comment corrections proposed inline in #40 and acknowledged as fixed in #42.

  • Man Zengsaw the final versionLLM analysis, 97% sureIdentified both inconsistent function-name comments inline in #40, and the commit credits his report.
Move code specific to pg_dependencies to new file
12 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #38

The complete pg_dependencies file-move component of the series #38 matches the commit’s changed lines exactly after whitespace normalization; #39 confirms application.

Move code specific to pg_ndistinct to new file
12 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #38

The complete pg_ndistinct file-move component of the series #38 matches the commit’s changed lines exactly after whitespace normalization; #39 confirms application.

Document some structures in attribute_stats.c
6 Nov 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #281 of 1 reviewer saw the final version

Extracts only the attribute argument-enum documentation from #28, reworded to match relation_stats.c; #29 explicitly confirms this independent extraction.

  • Michael Paquiersaw the final versioncommittercommitted the patch

Credits across 29 commits

Author
Corey Huinker20
Michael Paquier1 LLM3
Reviewer
Michael Paquiercommitter15
Chao Li7
jian he4
Yuefei Shi2
Noah Mischcommitter1
WangYu1
Reported by
Tom Lane2
Tender Wang1
zengman1
Co author
Michael Paquier5
Chao Li1
Corey Huinker1
Committer
Michael Paquier29
Noah Misch1

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