From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
Date: Thu, 07 Mar 2019 14:34:45 +0000
Message-ID: <E1h1u6f-000273-M2@gemulon.postgresql.org> (raw)
Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
This clause is used to indicate the passing mode of a XML document, but
we were doing it wrong: we accepted BY REF and ignored it, and rejected
BY VALUE as a syntax error. The reality, however, is that documents are
always passed BY VALUE, so rejecting that clause was silly. Change
things so that we accept BY VALUE.
BY REF continues to be accepted, and continues to be ignored.
Author: Chapman Flack
Reviewed-by: Pavel Stehule
Discussion: https://postgr.es/m/5C297BB7.9070509@anastigmatix.net
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/eaaa5986ad03f7871fa95878460e1132cb7e8963
Modified Files
--------------
doc/src/sgml/func.sgml | 39 +++++++++++++++++++++++-------------
src/backend/catalog/sql_features.txt | 4 ++--
src/backend/parser/gram.y | 15 +++++++++-----
3 files changed, 37 insertions(+), 21 deletions(-)
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
In-Reply-To: <E1h1u6f-000273-M2@gemulon.postgresql.org>
References: <E1h1u6f-000273-M2@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