Re: Patch Review: Bugfix for XPATH() if text or attribute nodes are selected

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Florian Pflug <fgp(at)phlo(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch Review: Bugfix for XPATH() if text or attribute nodes are selected
Date: 2011-07-13 09:58:58
Message-ID: CAP-rdTYr6fH6L=aHsw7jRV_xzn9gLNEKN9525TdXo2MxcUc08g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011/6/29, Florian Pflug <fgp(at)phlo(dot)org>:

> Secondly, there is little point in having an type XML if we
> don't actually ensure that values of that type can only contain
> well-formed XML.

+1. The fact that XPATH() must return a type that cannot depend on the
given expression (even if it is a constant string) may be unfortunate,
but returning XML-that-is-not-quite-XML sounds way worse to me.

Nicolas

--
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-07-13 12:00:06 Re: isolation tests are not being run in buildfarm
Previous Message Alexander Korotkov 2011-07-13 09:16:56 Re: WIP: Fast GiST index build