tsearch2::trunc_to_max (private)

 tsearch2::trunc_to_max txt

Defined in packages/tsearch2-driver/tcl/tsearch2-driver-procs.tcl

tsearch has (at least up to PostgreSQL 10) the limitation that the length of tsvector is 1MB. so make sure, we do not raise errors, when this happens. https://www.postgresql.org/docs/current/static/textsearch-limitations.html

Parameters:
txt (required)

Testcases:
No testcase defined.
[ show source ]
Show another procedure: