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

Commit b6987a8

Browse files
committed
Fix operator naming in pg_trgm GUC option descriptions
Descriptions of pg_trgm GUC options have % replaced with %% like it was a printf-like format. But that's not needed since they are just plain strings. This commit fixed that. Backpatch to last supported version since this error present from the beginning. Reported-by: Masahiko Sawada Discussion: https://postgr.es/m/CAD21AoAgPKODUsu9gqUFiNqEOAqedStxJ-a0sapsJXWWAVp%3Dxg%40mail.gmail.com Backpatch-through: 9.4
1 parent ba3783e commit b6987a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/pg_trgm/trgm_op.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ _PG_init(void)
6565
{
6666
/* Define custom GUC variables. */
6767
DefineCustomRealVariable("pg_trgm.similarity_threshold",
68-
"Sets the threshold used by the %% operator.",
68+
"Sets the threshold used by the % operator.",
6969
"Valid range is 0.0 .. 1.0.",
7070
&similarity_threshold,
7171
0.3,
@@ -77,7 +77,7 @@ _PG_init(void)
7777
NULL,
7878
NULL);
7979
DefineCustomRealVariable("pg_trgm.word_similarity_threshold",
80-
"Sets the threshold used by the <%% operator.",
80+
"Sets the threshold used by the <% operator.",
8181
"Valid range is 0.0 .. 1.0.",
8282
&word_similarity_threshold,
8383
0.6,
@@ -89,7 +89,7 @@ _PG_init(void)
8989
NULL,
9090
NULL);
9191
DefineCustomRealVariable("pg_trgm.strict_word_similarity_threshold",
92-
"Sets the threshold used by the <<%% operator.",
92+
"Sets the threshold used by the <<% operator.",
9393
"Valid range is 0.0 .. 1.0.",
9494
&strict_word_similarity_threshold,
9595
0.5,

0 commit comments

Comments
 (0)