Extended tsvector type for PostgreSQL 9.6+. It was implemented to provide better
compression and to remove 1MB size limitation of original tsvector type.
It could be used as transparent replacement of original tsvector and supports
all its functions, operators and index types. Functions that contain tsvector in their
names have been changed to tsvector2. Full list of these functions specified
below.
Refer to PostgreSQL documentation
to get details about tsvector. They can be also applied to tsvector2.
to_tsvector2(fromtext,json,jsonbtypes)array_to_tsvector2tsvector2_to_arraytsvector2_stat(should be used instead ofts_stat)jsonb_to_tsvector2json_to_tsvector2tsvector2_update_triggertsvector2_update_trigger_column
Notice that jsonb_to_tsvector2 and json_to_tsvector2 work different on
PostgreSQL 10 and 11. Same applies to tsvector functions.
stripunnestlengthsetweightts_rankts_rank_cdts_deletets_filter
make install PG_CONFIG=<path_to_pg_config>
# if you need rum support, install it first:
# psql <database> -c "create extension rum"
psql <database> -c "create extension tsvector2"