Make array_to_tsvector() sort and de-duplicate the given strings.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +1 −1 |
| src/backend/utils/adt/tsvector_op.c | modified | +42 −7 |
| src/test/regress/expected/tstypes.out | modified | +7 −0 |
| src/test/regress/sql/tstypes.sql | modified | +2 −0 |