Skip to content

Commit 589f91f

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 9ee98cc commit 589f91f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pg_trgm/trgm_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _PG_init(void)
4848
{
4949
/* Define custom GUC variables. */
5050
DefineCustomRealVariable("pg_trgm.similarity_threshold",
51-
"Sets the threshold used by the %% operator.",
51+
"Sets the threshold used by the % operator.",
5252
"Valid range is 0.0 .. 1.0.",
5353
&similarity_threshold,
5454
0.3,
@@ -60,7 +60,7 @@ _PG_init(void)
6060
NULL,
6161
NULL);
6262
DefineCustomRealVariable("pg_trgm.word_similarity_threshold",
63-
"Sets the threshold used by the <%% operator.",
63+
"Sets the threshold used by the <% operator.",
6464
"Valid range is 0.0 .. 1.0.",
6565
&word_similarity_threshold,
6666
0.6,

0 commit comments

Comments
 (0)