diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2016-03-16 17:44:58 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2016-03-16 17:44:58 +0300 |
commit | 5871b88487cfd07966e2ce08609a4d6d5ee9718e (patch) | |
tree | 98a15fc57482f770d710cd3e73894606c1879c66 /doc/src | |
parent | f9e5ed61ed1e27390051e8eb10bd9ec4cb40d7b2 (diff) |
GUC variable pg_trgm.similarity_threshold insead of set_limit()
Use GUC variable pg_trgm.similarity_threshold insead of
set_limit()/show_limit() which was introduced when defining GUC varuables
by modules was absent.
Author: Artur Zakirov
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/pgtrgm.sgml | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml index 9eb2a6742e4..1a9b5a796f1 100644 --- a/doc/src/sgml/pgtrgm.sgml +++ b/doc/src/sgml/pgtrgm.sgml @@ -99,7 +99,8 @@ Returns the current similarity threshold used by the <literal>%</> operator. This sets the minimum similarity between two words for them to be considered similar enough to - be misspellings of each other, for example. + be misspellings of each other, for example + (<emphasis>deprecated</emphasis>). </entry> </row> <row> @@ -108,7 +109,7 @@ <entry> Sets the current similarity threshold that is used by the <literal>%</> operator. The threshold must be between 0 and 1 (default is 0.3). - Returns the same value passed in. + Returns the same value passed in (<emphasis>deprecated</emphasis>). </entry> </row> </tbody> @@ -133,7 +134,7 @@ <entry> Returns <literal>true</> if its arguments have a similarity that is greater than the current similarity threshold set by - <function>set_limit</>. + <varname>pg_trgm.similarity_threshold</>. </entry> </row> <row> @@ -150,6 +151,27 @@ </sect2> <sect2> + <title>GUC Parameters</title> + + <variablelist> + <varlistentry id="guc-pgtrgm-similarity-threshold" xreflabel="pg_trgm.similarity_threshold"> + <term> + <varname>pg_trgm.similarity_threshold</> (<type>real</type>) + <indexterm> + <primary><varname>pg_trgm.similarity_threshold</> configuration parameter</primary> + </indexterm> + </term> + <listitem> + <para> + Sets the current similarity threshold that is used by the <literal>%</> + operator. The threshold must be between 0 and 1 (default is 0.3). + </para> + </listitem> + </varlistentry> + </variablelist> + </sect2> + + <sect2> <title>Index Support</title> <para> |