diff options
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> |