Re: review: xml_is_well_formed

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: review: xml_is_well_formed
Дата
Msg-id 1280848526.13031.6.camel@fsopti579.F-Secure.com
обсуждение исходный текст
Ответ на Re: review: xml_is_well_formed  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: review: xml_is_well_formed  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: review: xml_is_well_formed  (Mike Fowler <mike@mlfowler.com>)
Re: review: xml_is_well_formed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On lör, 2010-07-31 at 13:40 -0400, Robert Haas wrote:
> > Well-formedness should probably only allow XML documents.
> 
> I think the point of this function is to determine whether a cast to
> xml will throw an error.  The behavior should probably match exactly
> whatever test would be applied there.

Maybe there should be

xml_is_well_formed()
xml_is_well_formed_document()
xml_is_well_formed_content()

I agree that consistency with SQL/XML is desirable, but for someone
coming from the outside, the unqualified claim that 'foo' is well-formed
XML might sound suspicious.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Develop item from TODO list
Следующее
От: Yeb Havinga
Дата:
Сообщение: Re: patch for check constraints using multiple inheritance