Skip to content

Commit 1faaad2

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 34279fd commit 1faaad2

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
@@ -7326,7 +7326,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
73267326
<structfield>stxkind</structfield> <type>char[]</type>
73277327
</para>
73287328
<para>
7329-
An array containing codes for the enabled statistic kinds;
7329+
An array containing codes for the enabled statistics kinds;
73307330
valid values are:
73317331
<literal>d</literal> for n-distinct statistics,
73327332
<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
@@ -639,7 +639,7 @@ statext_dependencies_load(Oid mvoid)
639639
Anum_pg_statistic_ext_data_stxddependencies, &isnull);
640640
if (isnull)
641641
elog(ERROR,
642-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
642+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
643643
STATS_EXT_DEPENDENCIES, mvoid);
644644

645645
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
@@ -64,7 +64,7 @@ typedef struct StatExtEntry
6464
char *schema; /* statistics object's schema */
6565
char *name; /* statistics object's name */
6666
Bitmapset *columns; /* attribute numbers covered by the object */
67-
List *types; /* 'char' list of enabled statistic kinds */
67+
List *types; /* 'char' list of enabled statistics kinds */
6868
int stattarget; /* statistics target (-1 for default) */
6969
} StatExtEntry;
7070

src/backend/statistics/mcv.c

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

570570
if (isnull)
571571
elog(ERROR,
572-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
572+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
573573
STATS_EXT_DEPENDENCIES, mvoid);
574574

575575
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
@@ -153,7 +153,7 @@ statext_ndistinct_load(Oid mvoid)
153153
Anum_pg_statistic_ext_data_stxdndistinct, &isnull);
154154
if (isnull)
155155
elog(ERROR,
156-
"requested statistic kind \"%c\" is not yet built for statistics object %u",
156+
"requested statistics kind \"%c\" is not yet built for statistics object %u",
157157
STATS_EXT_NDISTINCT, mvoid);
158158

159159
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
@@ -912,7 +912,7 @@ typedef struct StatisticExtInfo
912912

913913
Oid statOid; /* OID of the statistics row */
914914
RelOptInfo *rel; /* back-link to statistic's table */
915-
char kind; /* statistic kind of this entry */
915+
char kind; /* statistics kind of this entry */
916916
Bitmapset *keys; /* attnums of the columns covered */
917917
} StatisticExtInfo;
918918

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy