]> granicus.if.org Git - postgresql/commit
Make array_to_tsvector() sort and de-duplicate the given strings.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 5 Aug 2016 20:09:06 +0000 (16:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 5 Aug 2016 20:09:06 +0000 (16:09 -0400)
commitf10eab73df2b94c860dea4a906c54e3c903f42e2
tree8fedfd12ef602529ca659e163e75e356c11653b2
parentc50d192ce33c10fa06411306f8644b4f47ce9a06
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>
doc/src/sgml/func.sgml
src/backend/utils/adt/tsvector_op.c
src/test/regress/expected/tstypes.out
src/test/regress/sql/tstypes.sql