Re: review: xml_is_well_formed

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: review: xml_is_well_formed
Дата
Msg-id 1281128106.2563.7.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: review: xml_is_well_formed  (Mike Fowler <mike@mlfowler.com>)
Ответы Re: review: xml_is_well_formed  (Mike Fowler <mike@mlfowler.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: review: xml_is_well_formed
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Initial review of xslt with no limits patch