Re: review: xml_is_well_formed - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: review: xml_is_well_formed
Date
Msg-id 1281128106.2563.7.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: review: xml_is_well_formed  (Mike Fowler <mike@mlfowler.com>)
Responses Re: review: xml_is_well_formed  (Mike Fowler <mike@mlfowler.com>)
List pgsql-hackers
On fre, 2010-08-06 at 14:43 +0100, Mike Fowler wrote:
> > Or perhaps it could return a string instead of a boolean: content,
> > document, or NULL if it's neither.
> >    
> 
> I like the sound of that. In fact this helps workaround the IS
> DOCUMENT 
> and IS CONTENT limitations such that you can you can select only 
> content, only documents or both is you use IS NOT NULL.
> 
> Unless anyone sees a reason that this function needs to remain a
> boolean function, I'll rework the patch over the weekend. 

What is the actual use case for this function?  Is the above behavior
actually useful?

One reason to stick with boolean is backward compatibility.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: review: xml_is_well_formed
Next
From: "David E. Wheeler"
Date:
Subject: Re: Initial review of xslt with no limits patch