pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add functions pg_set_attribute_stats() and pg_clear_attribute_st
Date: Tue, 22 Oct 2024 22:24:42 +0000
Message-ID: <E1t3NIx-001xv3-6p@gemulon.postgresql.org> (raw)

Add functions pg_set_attribute_stats() and pg_clear_attribute_stats().

Enable manipulation of attribute statistics. Only superficial
validation is performed, so it's possible to add nonsense, and it's up
to the planner (or other users of statistics) to behave reasonably in
that case.

Bump catalog version.

Author: Corey Huinker
Discussion: https://postgr.es/m/CADkLM=eErgzn7ECDpwFcptJKOk9SxZEk5Pot4d94eVTZsvj3gw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce207d2a79017713c0293bf70132dc6d41166b03

Modified Files
--------------
doc/src/sgml/func.sgml                     |  72 +++
src/backend/catalog/system_functions.sql   |  22 +
src/backend/statistics/Makefile            |   1 +
src/backend/statistics/attribute_stats.c   | 869 +++++++++++++++++++++++++++++
src/backend/statistics/meson.build         |   1 +
src/backend/statistics/stat_utils.c        |  73 +++
src/include/catalog/catversion.h           |   2 +-
src/include/catalog/pg_proc.dat            |  14 +
src/include/statistics/stat_utils.h        |   7 +
src/test/regress/expected/stats_import.out | 659 +++++++++++++++++++++-
src/test/regress/sql/stats_import.sql      | 545 ++++++++++++++++++
11 files changed, 2263 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1t3NIx-001xv3-6p@gemulon.postgresql.org>
Permalink:  ../E1t3NIx-001xv3-6p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t3NIx-001xv3-6p@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add functions pg_set_attribute_stats() and pg_clear_attribute_st
  In-Reply-To: <E1t3NIx-001xv3-6p@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox