pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support 'q' flag in jsonpath 'like_regex' predicate
Date: Wed, 19 Jun 2019 19:42:42 +0000
Message-ID: <E1hdgTi-0005xb-N4@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/261a5c1928566f938cbda0f62dc16f6a2d1e871d

Modified Files
--------------
src/backend/utils/adt/jsonpath.c             |  2 ++
src/backend/utils/adt/jsonpath_exec.c        | 11 +++++++++
src/backend/utils/adt/jsonpath_gram.y        |  8 +++++++
src/include/utils/jsonpath.h                 |  1 +
src/test/regress/expected/jsonb_jsonpath.out | 36 ++++++++++++++++++++++++++++
src/test/regress/expected/jsonpath.out       | 18 ++++++++++++++
src/test/regress/sql/jsonb_jsonpath.sql      |  6 +++++
src/test/regress/sql/jsonpath.sql            |  3 +++
8 files changed, 85 insertions(+)



Message-ID: <E1hdgTi-0005xb-N4@gemulon.postgresql.org>
Permalink:  ../E1hdgTi-0005xb-N4@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hdgTi-0005xb-N4@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Support 'q' flag in jsonpath 'like_regex' predicate
  In-Reply-To: <E1hdgTi-0005xb-N4@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