mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Clarify that pg_trgm is used in example
Reported-by: Octopus ZHANG Author: Daniel Gustafsson
This commit is contained in:
@ -1039,7 +1039,8 @@ SELECT count(*) FROM words WHERE word = 'caterpiler';
|
|||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
Either way, the word is spelled wrong, so let's look for what we might
|
Either way, the word is spelled wrong, so let's look for what we might
|
||||||
have wanted. Again using <literal>file_fdw</literal>:
|
have wanted. Again using <literal>file_fdw</literal> and
|
||||||
|
<literal>pg_trgm</literal>:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT word FROM words ORDER BY word <-> 'caterpiler' LIMIT 10;
|
SELECT word FROM words ORDER BY word <-> 'caterpiler' LIMIT 10;
|
||||||
|
Reference in New Issue
Block a user