Commit a5f002ad authored by Tomas Vondra's avatar Tomas Vondra

Use correct spelling of statistics kind

A couple error messages and comments used 'statistic kind', not the
correct 'statistics kind'. Fix and backpatch all the way back to 10,
where extended statistics were introduced.

Backpatch-through: 10
parent 1e3e8b51
...@@ -7370,7 +7370,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -7370,7 +7370,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
<structfield>stxkind</structfield> <type>char[]</type> <structfield>stxkind</structfield> <type>char[]</type>
</para> </para>
<para> <para>
An array containing codes for the enabled statistic kinds; An array containing codes for the enabled statistics kinds;
valid values are: valid values are:
<literal>d</literal> for n-distinct statistics, <literal>d</literal> for n-distinct statistics,
<literal>f</literal> for functional dependency statistics, and <literal>f</literal> for functional dependency statistics, and
......
...@@ -639,7 +639,7 @@ statext_dependencies_load(Oid mvoid) ...@@ -639,7 +639,7 @@ statext_dependencies_load(Oid mvoid)
Anum_pg_statistic_ext_data_stxddependencies, &isnull); Anum_pg_statistic_ext_data_stxddependencies, &isnull);
if (isnull) if (isnull)
elog(ERROR, 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); STATS_EXT_DEPENDENCIES, mvoid);
result = statext_dependencies_deserialize(DatumGetByteaPP(deps)); result = statext_dependencies_deserialize(DatumGetByteaPP(deps));
......
...@@ -64,7 +64,7 @@ typedef struct StatExtEntry ...@@ -64,7 +64,7 @@ typedef struct StatExtEntry
char *schema; /* statistics object's schema */ char *schema; /* statistics object's schema */
char *name; /* statistics object's name */ char *name; /* statistics object's name */
Bitmapset *columns; /* attribute numbers covered by the object */ Bitmapset *columns; /* attribute numbers covered by the object */
List *types; /* 'char' list of enabled statistic kinds */ List *types; /* 'char' list of enabled statistics kinds */
int stattarget; /* statistics target (-1 for default) */ int stattarget; /* statistics target (-1 for default) */
} StatExtEntry; } StatExtEntry;
......
...@@ -570,7 +570,7 @@ statext_mcv_load(Oid mvoid) ...@@ -570,7 +570,7 @@ statext_mcv_load(Oid mvoid)
if (isnull) if (isnull)
elog(ERROR, 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); STATS_EXT_DEPENDENCIES, mvoid);
result = statext_mcv_deserialize(DatumGetByteaP(mcvlist)); result = statext_mcv_deserialize(DatumGetByteaP(mcvlist));
......
...@@ -153,7 +153,7 @@ statext_ndistinct_load(Oid mvoid) ...@@ -153,7 +153,7 @@ statext_ndistinct_load(Oid mvoid)
Anum_pg_statistic_ext_data_stxdndistinct, &isnull); Anum_pg_statistic_ext_data_stxdndistinct, &isnull);
if (isnull) if (isnull)
elog(ERROR, 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); STATS_EXT_NDISTINCT, mvoid);
result = statext_ndistinct_deserialize(DatumGetByteaPP(ndist)); result = statext_ndistinct_deserialize(DatumGetByteaPP(ndist));
......
...@@ -923,7 +923,7 @@ typedef struct StatisticExtInfo ...@@ -923,7 +923,7 @@ typedef struct StatisticExtInfo
Oid statOid; /* OID of the statistics row */ Oid statOid; /* OID of the statistics row */
RelOptInfo *rel; /* back-link to statistic's table */ 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 */ Bitmapset *keys; /* attnums of the columns covered */
} StatisticExtInfo; } StatisticExtInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment