diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2019-06-10 20:14:19 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2019-06-10 20:14:19 +0300 |
commit | b6987a885ba9216e1f4319441303ee115556922c (patch) | |
tree | e7e46e45a2f0ac5192811b44413a087faa263270 | |
parent | ba3783e0244e3502d1b08896ffc72b3a88dbdb83 (diff) | |
download | postgresql-b6987a885ba9216e1f4319441303ee115556922c.tar.gz postgresql-b6987a885ba9216e1f4319441303ee115556922c.zip |
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
-rw-r--r-- | contrib/pg_trgm/trgm_op.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/pg_trgm/trgm_op.c b/contrib/pg_trgm/trgm_op.c index 9f26725ec21..589dbb87ad5 100644 --- a/contrib/pg_trgm/trgm_op.c +++ b/contrib/pg_trgm/trgm_op.c @@ -65,7 +65,7 @@ _PG_init(void) { /* Define custom GUC variables. */ DefineCustomRealVariable("pg_trgm.similarity_threshold", - "Sets the threshold used by the %% operator.", + "Sets the threshold used by the % operator.", "Valid range is 0.0 .. 1.0.", &similarity_threshold, 0.3, @@ -77,7 +77,7 @@ _PG_init(void) NULL, NULL); DefineCustomRealVariable("pg_trgm.word_similarity_threshold", - "Sets the threshold used by the <%% operator.", + "Sets the threshold used by the <% operator.", "Valid range is 0.0 .. 1.0.", &word_similarity_threshold, 0.6, @@ -89,7 +89,7 @@ _PG_init(void) NULL, NULL); DefineCustomRealVariable("pg_trgm.strict_word_similarity_threshold", - "Sets the threshold used by the <<%% operator.", + "Sets the threshold used by the <<% operator.", "Valid range is 0.0 .. 1.0.", &strict_word_similarity_threshold, 0.5, |