Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita5f002a

Browse files
committed
Use correct spelling of statistics kind
A couple error messages and comments used 'statistic kind', not thecorrect 'statistics kind'. Fix and backpatch all the way back to 10,where extended statistics were introduced.Backpatch-through: 10
1 parent1e3e8b5 commita5f002a

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
@@ -7370,7 +7370,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
73707370
<structfield>stxkind</structfield> <type>char[]</type>
73717371
</para>
73727372
<para>
7373-
An array containing codes for the enabledstatistic kinds;
7373+
An array containing codes for the enabledstatistics kinds;
73747374
valid values are:
73757375
<literal>d</literal> for n-distinct statistics,
73767376
<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-
"requestedstatistic kind \"%c\" is not yet built for statistics object %u",
642+
"requestedstatistics 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 enabledstatistic kinds */
67+
List*types;/* 'char' list of enabledstatistics kinds */
6868
intstattarget;/* 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
@@ -570,7 +570,7 @@ statext_mcv_load(Oid mvoid)
570570

571571
if (isnull)
572572
elog(ERROR,
573-
"requestedstatistic kind \"%c\" is not yet built for statistics object %u",
573+
"requestedstatistics kind \"%c\" is not yet built for statistics object %u",
574574
STATS_EXT_DEPENDENCIES,mvoid);
575575

576576
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-
"requestedstatistic kind \"%c\" is not yet built for statistics object %u",
156+
"requestedstatistics 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
@@ -923,7 +923,7 @@ typedef struct StatisticExtInfo
923923

924924
OidstatOid;/* OID of the statistics row */
925925
RelOptInfo*rel;/* back-link to statistic's table */
926-
charkind;/*statistic kind of this entry */
926+
charkind;/*statistics kind of this entry */
927927
Bitmapset*keys;/* attnums of the columns covered */
928928
}StatisticExtInfo;
929929

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp