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: Create functions pg_set_relation_stats, pg_clear_relation_stats.
Date: Fri, 11 Oct 2024 23:57:10 +0000
Message-ID: <E1szPVO-000NMT-OQ@gemulon.postgresql.org> (raw)

Create functions pg_set_relation_stats, pg_clear_relation_stats.

These functions are used to tweak statistics on any relation, provided
that the user has MAINTAIN privilege on the relation, or is the database
owner.

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/e839c8ecc9352b7754e74f19ace013c0c0d18613

Modified Files
--------------
doc/src/sgml/func.sgml                     |  94 +++++++++++++
src/backend/catalog/system_functions.sql   |  10 ++
src/backend/statistics/Makefile            |   4 +-
src/backend/statistics/meson.build         |   2 +
src/backend/statistics/relation_stats.c    | 210 +++++++++++++++++++++++++++++
src/backend/statistics/stat_utils.c        |  94 +++++++++++++
src/include/catalog/catversion.h           |   2 +-
src/include/catalog/pg_proc.dat            |  15 +++
src/include/statistics/stat_utils.h        |  29 ++++
src/test/regress/expected/stats_import.out | 143 ++++++++++++++++++++
src/test/regress/parallel_schedule         |   2 +-
src/test/regress/sql/stats_import.sql      |  98 ++++++++++++++
12 files changed, 700 insertions(+), 3 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1szPVO-000NMT-OQ@gemulon.postgresql.org>
Permalink:  ../E1szPVO-000NMT-OQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1szPVO-000NMT-OQ@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: Create functions pg_set_relation_stats, pg_clear_relation_stats.
  In-Reply-To: <E1szPVO-000NMT-OQ@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