Skip to content

Commit 16568c0

Browse files
committed
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
1 parent 4a2627c commit 16568c0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6575,7 +6575,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
65756575
<entry><type>char[]</type></entry>
65766576
<entry></entry>
65776577
<entry>
6578-
An array containing codes for the enabled statistic kinds;
6578+
An array containing codes for the enabled statistics kinds;
65796579
valid values are:
65806580
<literal>d</literal> for n-distinct statistics,
65816581
<literal>f</literal> for functional dependency statistics

src/backend/statistics/dependencies.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ statext_dependencies_load(Oid mvoid)
642642
Anum_pg_statistic_ext_stxdependencies, &isnull);
643643
if (isnull)
644644
elog(ERROR,
645-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
645+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
646646
STATS_EXT_DEPENDENCIES, mvoid);
647647

648648
result = statext_dependencies_deserialize(DatumGetByteaPP(deps));

src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct StatExtEntry
4444
char *schema; /* statistics object's schema */
4545
char *name; /* statistics object's name */
4646
Bitmapset *columns; /* attribute numbers covered by the object */
47-
List *types; /* 'char' list of enabled statistic kinds */
47+
List *types; /* 'char' list of enabled statistics kinds */
4848
} StatExtEntry;
4949

5050

src/backend/statistics/mvdistinct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ statext_ndistinct_load(Oid mvoid)
139139
Anum_pg_statistic_ext_stxndistinct, &isnull);
140140
if (isnull)
141141
elog(ERROR,
142-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
142+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
143143
STATS_EXT_NDISTINCT, mvoid);
144144

145145
result = statext_ndistinct_deserialize(DatumGetByteaPP(ndist));

src/include/nodes/relation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ typedef struct StatisticExtInfo
857857

858858
Oid statOid; /* OID of the statistics row */
859859
RelOptInfo *rel; /* back-link to statistic's table */
860-
char kind; /* statistic kind of this entry */
860+
char kind; /* statistics kind of this entry */
861861
Bitmapset *keys; /* attnums of the columns covered */
862862
} StatisticExtInfo;
863863

0 commit comments

Comments
 (0)