pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: improve documentation around jsonpath regular expressions.
Date: Thu, 19 Sep 2019 15:22:31 +0000
Message-ID: <E1iAyGN-0005M4-Ip@gemulon.postgresql.org> (raw)

Doc: improve documentation around jsonpath regular expressions.

Provide some documentation about the differences between XQuery
regular expressions and those supported by Spencer's regex engine.
Since SQL now exposes XQuery regexps with the LIKE_REGEX operator,
I made this a standalone section designed to help somebody who
has to translate a LIKE_REGEX query to Postgres.  (Eventually we might
extend Spencer's engine to allow precise implementation of XQuery,
but not today.)

Reference that in the jsonpath docs, provide definitions of the
XQuery flag letters, and add a description of the JavaScript-inspired
string literal syntax used within jsonpath.  Also point out explicitly
that backslashes used within like_regex patterns will need to be doubled.

This also syncs the docs with the decision implemented in commit
d5b90cd64 to desupport XQuery's 'x' flag for now.

Jonathan Katz and Tom Lane

Discussion: https://postgr.es/m/CAPpHfdvDci4iqNF9fhRkTqhe-5_8HmzeLt56drH%2B_Rv2rNRqfg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0a97edb12ec44f8d2d8828cbca6dd7639408ac88

Modified Files
--------------
doc/src/sgml/func.sgml | 213 ++++++++++++++++++++++++++++++++++++++++++++++++-
doc/src/sgml/json.sgml |  33 ++++++--
2 files changed, 235 insertions(+), 11 deletions(-)



view thread (2+ messages)

Message-ID: <E1iAyGN-0005M4-Ip@gemulon.postgresql.org>
Permalink:  ../E1iAyGN-0005M4-Ip@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iAyGN-0005M4-Ip@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Doc: improve documentation around jsonpath regular expressions.
  In-Reply-To: <E1iAyGN-0005M4-Ip@gemulon.postgresql.org>
  References: <E1iAyGN-0005M4-Ip@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