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

Commitbc93a5a

Browse files
committed
Fix operator naming in pg_trgm GUC option descriptions
Descriptions of pg_trgm GUC options have % replaced with %% like it wasa 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 errorpresent from the beginning.Reported-by: Masahiko SawadaDiscussion:https://postgr.es/m/CAD21AoAgPKODUsu9gqUFiNqEOAqedStxJ-a0sapsJXWWAVp%3Dxg%40mail.gmail.comBackpatch-through: 9.4
1 parent19dc23a commitbc93a5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎contrib/pg_trgm/trgm_op.c

Lines changed: 3 additions & 3 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp