postgresql/contrib/citext
Peter Eisentraut 78c887679d Add current substring regular expression syntax
SQL:1999 had syntax

    SUBSTRING(text FROM pattern FOR escapechar)

but this was replaced in SQL:2003 by the more clear

    SUBSTRING(text SIMILAR pattern ESCAPE escapechar)

but this was never implemented in PostgreSQL.  This patch adds that
new syntax as an alternative in the parser, and updates documentation
and tests to indicate that this is the preferred alternative now.

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Reviewed-by: Vik Fearing <vik@postgresfriends.org>
Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
Discussion: https://www.postgresql.org/message-id/flat/a15db31c-d0f8-8ce0-9039-578a31758adb%402ndquadrant.com
2020-06-29 11:05:00 +02:00
..
expected Add current substring regular expression syntax 2020-06-29 11:05:00 +02:00
sql Add current substring regular expression syntax 2020-06-29 11:05:00 +02:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Remove support for upgrading extensions from "unpackaged" state. 2020-02-19 16:59:14 -05:00
citext--1.0--1.1.sql Fix incorrect declaration of citext's regexp_matches() functions. 2015-05-05 15:51:22 -04:00
citext--1.1--1.2.sql Schema-qualify some references to regprocedure. 2016-06-10 10:41:58 -04:00
citext--1.2--1.3.sql Repair damage done by citext--1.1--1.2.sql. 2016-07-26 15:32:57 -04:00
citext--1.3--1.4.sql Support the new regexp_match() function for citext. 2016-08-18 10:52:31 -04:00
citext--1.4--1.5.sql Add citext_pattern_ops for citext contrib module 2017-09-19 08:31:45 -04:00
citext--1.4.sql Support the new regexp_match() function for citext. 2016-08-18 10:52:31 -04:00
citext--1.5--1.6.sql Add a 64-bit hash function for type citext. 2018-11-23 13:24:45 -05:00
citext.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
citext.control Mark some contrib modules as "trusted". 2020-02-13 15:02:35 -05:00