Support 'q' flag in jsonpath 'like_regex' predicate
authorAlexander Korotkov <akorotkov@postgresql.org>
Wed, 19 Jun 2019 19:40:58 +0000 (22:40 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Wed, 19 Jun 2019 19:41:57 +0000 (22:41 +0300)
commit261a5c1928566f938cbda0f62dc16f6a2d1e871d
treeb8c8f249ab1d48bfa0bfe7b7b0d278f0ff572565
parentd8594d123c155aeecd47fc2450f62f5100b2fbf0
Support 'q' flag in jsonpath 'like_regex' predicate

SQL/JSON standard defines that jsonpath 'like_regex' predicate should support
the same set of flags as XQuery/XPath.  It appears that implementation of 'q'
flag was missed.  This commit fixes that.

Discussion: https://postgr.es/m/CAPpHfdtyfPsxLYiTjp5Ov8T5xGsB5t3CwE5%2B3PS%3DLLwA%2BxTJog%40mail.gmail.com
Author: Nikita Glukhov, Alexander Korotkov
src/backend/utils/adt/jsonpath.c
src/backend/utils/adt/jsonpath_exec.c
src/backend/utils/adt/jsonpath_gram.y
src/include/utils/jsonpath.h
src/test/regress/expected/jsonb_jsonpath.out
src/test/regress/expected/jsonpath.out
src/test/regress/sql/jsonb_jsonpath.sql
src/test/regress/sql/jsonpath.sql