Fix broken compare function for tsquery_ops. Per Tom's report.

Teodor Sigaev <teodor@sigaev.ru>

Commit: be939544a68f852107c912da2f35f5d36958deb2
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-04-20T09:17:57Z
Releases: 8.4.0
Fix broken compare function for tsquery_ops. Per Tom's report.

I never understood why initial authors GiST in pgsql choose so
stgrange signature for 'same' method:
bool *sameFn(Datum a, Datum b, bool* result)
instead of simple, logical
bool sameFn(Datum a, Datum b)
This change will break any existing GiST extension, so we still live with
it and will live.

Files

PathChange+/−
src/backend/utils/adt/tsquery_gist.c modified +5 −2