Create functions pg_set_relation_stats, pg_clear_relation_stats.
authorJeff Davis <[email protected]>
Fri, 11 Oct 2024 23:55:11 +0000 (16:55 -0700)
committerJeff Davis <[email protected]>
Fri, 11 Oct 2024 23:55:11 +0000 (16:55 -0700)
commite839c8ecc9352b7754e74f19ace013c0c0d18613
tree881e69557ddddebec18104dc286c1ef160d8f909
parent6f782a2a1738ab96ee948a4ab33ca3defd39327b
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
12 files changed:
doc/src/sgml/func.sgml
src/backend/catalog/system_functions.sql
src/backend/statistics/Makefile
src/backend/statistics/meson.build
src/backend/statistics/relation_stats.c [new file with mode: 0644]
src/backend/statistics/stat_utils.c [new file with mode: 0644]
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/statistics/stat_utils.h [new file with mode: 0644]
src/test/regress/expected/stats_import.out [new file with mode: 0644]
src/test/regress/parallel_schedule
src/test/regress/sql/stats_import.sql [new file with mode: 0644]