Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c457b8

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 4220e06 commit 1c457b8

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6596,7 +6596,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
65966596
<entry><type>char[]</type></entry>
65976597
<entry></entry>
65986598
<entry>
6599-
An array containing codes for the enabled statistic kinds;
6599+
An array containing codes for the enabled statistics kinds;
66006600
valid values are:
66016601
<literal>d</literal> for n-distinct statistics,
66026602
<literal>f</literal> for functional dependency statistics, and

src/backend/statistics/dependencies.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ statext_dependencies_load(Oid mvoid)
646646
Anum_pg_statistic_ext_data_stxddependencies, &isnull);
647647
if (isnull)
648648
elog(ERROR,
649-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
649+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
650650
STATS_EXT_DEPENDENCIES, mvoid);
651651

652652
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
@@ -60,7 +60,7 @@ typedef struct StatExtEntry
6060
char *schema; /* statistics object's schema */
6161
char *name; /* statistics object's name */
6262
Bitmapset *columns; /* attribute numbers covered by the object */
63-
List *types; /* 'char' list of enabled statistic kinds */
63+
List *types; /* 'char' list of enabled statistics kinds */
6464
} StatExtEntry;
6565

6666

src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ statext_mcv_load(Oid mvoid)
571571

572572
if (isnull)
573573
elog(ERROR,
574-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
574+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
575575
STATS_EXT_DEPENDENCIES, mvoid);
576576

577577
result = statext_mcv_deserialize(DatumGetByteaP(mcvlist));

src/backend/statistics/mvdistinct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ statext_ndistinct_load(Oid mvoid)
154154
Anum_pg_statistic_ext_data_stxdndistinct, &isnull);
155155
if (isnull)
156156
elog(ERROR,
157-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
157+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
158158
STATS_EXT_NDISTINCT, mvoid);
159159

160160
result = statext_ndistinct_deserialize(DatumGetByteaPP(ndist));

src/include/nodes/pathnodes.h

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

879879
Oid statOid; /* OID of the statistics row */
880880
RelOptInfo *rel; /* back-link to statistic's table */
881-
char kind; /* statistic kind of this entry */
881+
char kind; /* statistics kind of this entry */
882882
Bitmapset *keys; /* attnums of the columns covered */
883883
} StatisticExtInfo;
884884

0 commit comments

Comments
 (0)