Make array_to_tsvector() sort and de-duplicate the given strings.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f10eab73df2b94c860dea4a906c54e3c903f42e2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-08-05T20:09:06Z
Releases: 9.6.0
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>

Files

Documentation touched