]> granicus.if.org Git - postgresql/commit
Change predecence of phrase operator.
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Jun 2016 17:55:24 +0000 (20:55 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Jun 2016 17:55:24 +0000 (20:55 +0300)
commit6734a1cacd44f5b731933cbc93182b135b167d0c
tree39b868e9a39f4301c7c9699b82f95f5979acb590
parent3dbbd0f02a257d8d5c4cba14726371505f2e7266
Change predecence of phrase operator.

<-> operator now have higher predecence than & (AND) operator. This change
was motivated by unexpected difference of similar queries:
'a & b <-> c'::tsquery and 'b <-> c & a'. Before first query means
(a & b) <-> c and second one - '(b <-> c) & a', now phrase operator evaluates
first.

Per suggestion from Tom Lane 32260.1465402409@sss.pgh.pa.us
src/backend/utils/adt/tsquery.c
src/backend/utils/adt/tsquery_cleanup.c
src/include/tsearch/ts_type.h
src/test/regress/expected/tsdicts.out
src/test/regress/expected/tsearch.out
src/test/regress/expected/tstypes.out