Re: Bug in XPATH() produces invalid XML values and probably un-restorable dumps

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: Bug in XPATH() produces invalid XML values and probably un-restorable dumps
Дата
Msg-id FC60A4F5-5560-438C-97E8-B6D1FDE1CC2B@phlo.org
обсуждение исходный текст
Ответ на Bug in XPATH() produces invalid XML values and probably un-restorable dumps  (Florian Pflug <fgp@phlo.org>)
Список pgsql-hackers
On May31, 2011, at 20:50 , Florian Pflug wrote:
> While trying to figure out sensible semantics for XPATH() and scalar-value returning XPath expressions, I've stumbled
upona bug in XPATH() that allows invalid XML values to be produced. This is a serious problem because should such
invalidvalues get inserted into an XML column, an un-restorable dump ensues. 
>
> Here's an example (REL9_0_STABLE as of a few days ago)
>
> template1=# SELECT (XPATH('/*/text()', '<root><</root>'))[1];
> xpath
> -------
> <
>
> ...
>
> Patch is attached.

I've added two tests to the xml regression test which highlight the issue.

Updated patch attached.

best regards,
Florian Pflug

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Postmaster holding unlinked files for pg_largeobject table
Следующее
От: Dan Ports
Дата:
Сообщение: Re: SSI work for 9.1