diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-06-29 11:04:42 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-06-29 11:05:00 +0200 |
commit | 78c887679d7632c1211f85eb95723f3226bf1b46 (patch) | |
tree | 7c333d0f5f4c6238ea74bc44038564a179882107 /src/backend/utils/adt/encode.c | |
parent | aafefb4dcbf79e8cb1439e888a9cdb3dfefa7657 (diff) | |
download | postgresql-78c887679d7632c1211f85eb95723f3226bf1b46.tar.gz postgresql-78c887679d7632c1211f85eb95723f3226bf1b46.zip |
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
Diffstat (limited to 'src/backend/utils/adt/encode.c')
0 files changed, 0 insertions, 0 deletions