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

Teodor Sigaev <teodor@sigaev.ru>

Commit: 254d66e2f1b3d42f9afa0acebb04501c505ec5b6
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-04-20T09:29:48Z
Releases: 8.3.2
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