mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user