Fix oversight in tsearch type check

Teodor Sigaev <teodor@sigaev.ru>

Commit: 9acb9007de30b3daaa9efc16763c3bc6e3e0a92d
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2015-09-17T16:50:51Z
Releases: 9.6.0
Fix oversight in tsearch type check

Use IsBinaryCoercible() method instead of custom
is_expected_type/is_text_type functions which was introduced when tsearch2
was moved into core.

Per report by David E. Wheeler
Analysis by Tom Lane
Patch by me

Files

PathChange+/−
src/backend/utils/adt/tsvector_op.c modified +4 −38