pgsql: Revert "Remove fake FunctionCallInfos from the stats .."

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revert "Remove fake FunctionCallInfos from the stats .."
Date: 2026-09-03 08:25:05
Message-ID: E1x22kq-00000003I0g-1INu@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Revert "Remove fake FunctionCallInfos from the stats .."

This reverts commit cc9a8eb112fa, after more discussion with Etsuro
Fujita. We are still not sure about the interface that should be used
for the portion related to the statistics import, and what should be
exposed for FDW code that may want to rely on these two functions:
- import_attribute_statistics()
- import_relation_statistics()

Discussion: https://postgr.es/m/CAPmGK15HUuNvEZk4b+K_x57+sg31B9LDwB7DBgVNaCpLnafhPA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6fe9b62914bcb55cbf02d8d741a42f810d239725

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 69 ++++-----
src/backend/statistics/attribute_stats.c | 215 +++++++++++++++-----------
src/backend/statistics/extended_stats_funcs.c | 81 +++++-----
src/backend/statistics/relation_stats.c | 127 ++++++++-------
src/backend/statistics/stat_utils.c | 56 +++----
src/include/statistics/stat_utils.h | 19 ++-
src/include/statistics/statistics.h | 66 +++-----
src/tools/pgindent/typedefs.list | 2 -
8 files changed, 335 insertions(+), 300 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-09-03 08:36:40 pgsql: pg_upgrade: Test --check with a running source server
Previous Message Fujii Masao 2026-09-03 03:19:10 pgsql: Avoid backend hang during temp table cleanup in deferrable trans