Re: review: xml_is_well_formed

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: review: xml_is_well_formed
Дата
Msg-id AANLkTinHhCZR2RqiDrMd=eqdfw2eHVZ=+Q2vdYiLVP=5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: review: xml_is_well_formed  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: review: xml_is_well_formed  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: review: xml_is_well_formed  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Sat, Jul 31, 2010 at 8:10 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
> On fre, 2010-07-30 at 12:50 +0100, Mike Fowler wrote:
>> > * xml_is_well_formed returns true for simple text
>> >
>> > postgres=# SELECT xml_is_well_formed('ssss');
>> >   xml_is_well_formed
>> > --------------------
>> >   t
>> > (1 row)
>> >
>> > it is probably wrong result - is it ok??
>> >
>>
>> Yes this is OK, pure text is valid XML content.
>
> Are you speaking of XML content fragments that SQL/XML defines?
>
> 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.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: ANALYZE versus expression indexes with nondefault opckeytype
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: ANALYZE versus expression indexes with nondefault opckeytype