diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-05 16:09:06 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-05 16:09:06 -0400 |
commit | f10eab73df2b94c860dea4a906c54e3c903f42e2 (patch) | |
tree | 8fedfd12ef602529ca659e163e75e356c11653b2 /doc/src | |
parent | c50d192ce33c10fa06411306f8644b4f47ce9a06 (diff) |
Make array_to_tsvector() sort and de-duplicate the given strings.
This is required for the result to be a legal tsvector value.
Noted while fooling with Andreas Seltenreich's ts_delete() crash.
Discussion: <87invhoj6e.fsf@credativ.de>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 971e642276c..783033403a4 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -9294,7 +9294,7 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple <entry><type>tsvector</type></entry> <entry>convert array of lexemes to <type>tsvector</type></entry> <entry><literal>array_to_tsvector('{fat,cat,rat}'::text[])</literal></entry> - <entry><literal>'fat' 'cat' 'rat'</literal></entry> + <entry><literal>'cat' 'fat' 'rat'</literal></entry> </row> <row> <entry> |