]> granicus.if.org Git - postgresql/commit
Add prefix operator for TEXT type.
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 3 Apr 2018 16:46:45 +0000 (19:46 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 3 Apr 2018 16:46:45 +0000 (19:46 +0300)
commit710d90da1fd8c1d028215ecaf7402062079e99e9
tree6fb5d284edb7a9c37e3ae633c92779a65d1b97c6
parent4ab299981576ca0f3dbb879b5e2b704e743d87f3
Add prefix operator for TEXT type.

The prefix operator along with SP-GiST indexes can be used as an alternative
for LIKE 'word%' commands  and it doesn't have a limitation of string/prefix
length as B-Tree has.

Bump catalog version

Author: Ildus Kurbangaliev with some editorization by me
Review by: Arthur Zakirov, Alexander Korotkov, and me
Discussion: https://www.postgresql.org/message-id/flat/20180202180327.222b04b3@wp.localdomain
14 files changed:
doc/src/sgml/func.sgml
doc/src/sgml/spgist.sgml
src/backend/access/spgist/spgtextproc.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/varlena.c
src/include/access/stratnum.h
src/include/catalog/catversion.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/utils/selfuncs.h
src/test/regress/expected/create_index.out
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/create_index.sql