Improve make_tsvector() to handle empty input, and simplify its callers.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Jul 2017 17:13:47 +0000 (13:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Jul 2017 17:13:47 +0000 (13:13 -0400)
commit04a2c7f412d01da8100de79b13df4fd39e15ce25
treef7fc7f0afa4fa247016962adc75bd442e158ef0d
parentb4c6d31c0be0f5c42a75d50afcf13bdd392db4a1
Improve make_tsvector() to handle empty input, and simplify its callers.

It seemed a bit silly that each caller of make_tsvector() was laboriously
special-casing the situation where no lexemes were found, when it would
be easy and much more bullet-proof to make make_tsvector() handle that.
src/backend/tsearch/to_tsany.c
src/backend/utils/adt/tsvector_op.c