pgsql: Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
Date: 2019-03-07 14:34:45
Message-ID: E1h1u6f-000273-M2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2019-03-07 14:36:01 pgsql: Fix broken markup
Previous Message Michael Paquier 2019-03-07 14:11:16 Re: pgsql: Removed unused variable, openLogOff.