summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-11-06 16:22:12 +0900
committerMichael Paquier <michael@paquier.xyz>2025-11-06 16:22:12 +0900
commitd6c132d83bff76acd569175af7f53b7c1bf429f4 (patch)
treea41d0d2ab76c5e40768f377c524c9b36e6458333 /src/backend
parent489ec6b2fcd09621a2ac146298193a8231810e60 (diff)
Document some structures in attribute_stats.c
Like relation_stats.c, these structures are used to track the argument number, names and types of pg_restore_attribute_stats() and pg_clear_attribute_stats(). Extracted from a larger patch by the same author, reworded by me for consistency with relation_stats.c. Author: Corey Huinker <corey.huinker@gmail.com> Discussion: https://postgr.es/m/CADkLM=dpz3KFnqP-dgJ-zvRvtjsa8UZv8wDAQdqho=qN3kX0Zg@mail.gmail.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/statistics/attribute_stats.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend/statistics/attribute_stats.c b/src/backend/statistics/attribute_stats.c
index 401bf571f27..ef4d768feab 100644
--- a/src/backend/statistics/attribute_stats.c
+++ b/src/backend/statistics/attribute_stats.c
@@ -36,6 +36,11 @@
#define DEFAULT_AVG_WIDTH Int32GetDatum(0) /* unknown */
#define DEFAULT_N_DISTINCT Float4GetDatum(0.0) /* unknown */
+/*
+ * Positional argument numbers, names, and types for
+ * attribute_statistics_update() and pg_restore_attribute_stats().
+ */
+
enum attribute_stats_argnum
{
ATTRELSCHEMA_ARG = 0,
@@ -82,6 +87,11 @@ static struct StatsArgInfo attarginfo[] =
[NUM_ATTRIBUTE_STATS_ARGS] = {0}
};
+/*
+ * Positional argument numbers, names, and types for
+ * pg_clear_attribute_stats().
+ */
+
enum clear_attribute_stats_argnum
{
C_ATTRELSCHEMA_ARG = 0,