diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2021-03-23 04:54:34 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2021-03-23 04:54:34 +0100 |
commit | fb742ce2687a9fdb103479950603cfbecbed285e (patch) | |
tree | 9d565fdacf80ee06076b11b0b03df039005e7514 /src | |
parent | 5386a8506d7da3cf1af3fbdb04d7c4f811674574 (diff) | |
download | postgresql-fb742ce2687a9fdb103479950603cfbecbed285e.tar.gz postgresql-fb742ce2687a9fdb103479950603cfbecbed285e.zip |
Use correct spelling of statistics kind
A couple error messages and comments used 'statistic kind', not the
correct 'statistics kind'. Fix and backpack all the way back to 10,
where extended statistics were introduced.
Backpatch-through: 10
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/statistics/dependencies.c | 2 | ||||
-rw-r--r-- | src/backend/statistics/extended_stats.c | 2 | ||||
-rw-r--r-- | src/backend/statistics/mvdistinct.c | 2 | ||||
-rw-r--r-- | src/include/nodes/relation.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/statistics/dependencies.c b/src/backend/statistics/dependencies.c index bc4895f8fb4..95607567eb7 100644 --- a/src/backend/statistics/dependencies.c +++ b/src/backend/statistics/dependencies.c @@ -642,7 +642,7 @@ statext_dependencies_load(Oid mvoid) Anum_pg_statistic_ext_stxdependencies, &isnull); if (isnull) elog(ERROR, - "requested statistic kind \"%c\" is not yet built for statistics object %u", + "requested statistics kind \"%c\" is not yet built for statistics object %u", STATS_EXT_DEPENDENCIES, mvoid); result = statext_dependencies_deserialize(DatumGetByteaPP(deps)); diff --git a/src/backend/statistics/extended_stats.c b/src/backend/statistics/extended_stats.c index 26c2aedd36c..b0d0c6b205b 100644 --- a/src/backend/statistics/extended_stats.c +++ b/src/backend/statistics/extended_stats.c @@ -44,7 +44,7 @@ typedef struct StatExtEntry char *schema; /* statistics object's schema */ char *name; /* statistics object's name */ Bitmapset *columns; /* attribute numbers covered by the object */ - List *types; /* 'char' list of enabled statistic kinds */ + List *types; /* 'char' list of enabled statistics kinds */ } StatExtEntry; diff --git a/src/backend/statistics/mvdistinct.c b/src/backend/statistics/mvdistinct.c index 424a79056e1..eb467564cf4 100644 --- a/src/backend/statistics/mvdistinct.c +++ b/src/backend/statistics/mvdistinct.c @@ -139,7 +139,7 @@ statext_ndistinct_load(Oid mvoid) Anum_pg_statistic_ext_stxndistinct, &isnull); if (isnull) elog(ERROR, - "requested statistic kind \"%c\" is not yet built for statistics object %u", + "requested statistics kind \"%c\" is not yet built for statistics object %u", STATS_EXT_NDISTINCT, mvoid); result = statext_ndistinct_deserialize(DatumGetByteaPP(ndist)); diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index 3c7436cf27e..8f45f9f80f2 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -722,7 +722,7 @@ typedef struct StatisticExtInfo Oid statOid; /* OID of the statistics row */ RelOptInfo *rel; /* back-link to statistic's table */ - char kind; /* statistic kind of this entry */ + char kind; /* statistics kind of this entry */ Bitmapset *keys; /* attnums of the columns covered */ } StatisticExtInfo; |