pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add prefix operator for TEXT type.
Date: Tue, 03 Apr 2018 16:47:48 +0000
Message-ID: <E1f3P64-0001lH-Vt@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/710d90da1fd8c1d028215ecaf7402062079e99e9

Modified Files
--------------
doc/src/sgml/func.sgml                     | 21 +++++++++++++++
doc/src/sgml/spgist.sgml                   |  1 +
src/backend/access/spgist/spgtextproc.c    | 43 +++++++++++++++++++++++++++---
src/backend/utils/adt/selfuncs.c           | 33 +++++++++++++++++++++++
src/backend/utils/adt/varlena.c            | 28 +++++++++++++++++++
src/include/access/stratnum.h              |  3 ++-
src/include/catalog/catversion.h           |  2 +-
src/include/catalog/pg_amop.h              |  1 +
src/include/catalog/pg_operator.h          |  2 ++
src/include/catalog/pg_proc.h              |  5 ++++
src/include/utils/selfuncs.h               |  7 +++--
src/test/regress/expected/create_index.out | 38 ++++++++++++++++++++++++++
src/test/regress/expected/opr_sanity.out   |  4 ++-
src/test/regress/sql/create_index.sql      | 10 +++++++
14 files changed, 189 insertions(+), 9 deletions(-)



Message-ID: <E1f3P64-0001lH-Vt@gemulon.postgresql.org>
Permalink:  ../E1f3P64-0001lH-Vt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f3P64-0001lH-Vt@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Add prefix operator for TEXT type.
  In-Reply-To: <E1f3P64-0001lH-Vt@gemulon.postgresql.org>
  References: <E1f3P64-0001lH-Vt@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox