Re: xpath processing brain dead

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com>
Subject: Re: xpath processing brain dead
Date: 2009-02-26 18:10:13
Message-ID: 49A6DB05.7010404@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>> I don't think it is our responsibility to remedy the deficiencies of
>> libxml2, especially if it involves breaking the processing of valid
>> xpath expressions on well formed XML.
>>
>
>
>> If someone can come up with a correct scheme for handling fragments, I'm
>> all ears, but otherwise I think a) we should rip this out of 8.4 and b)
>> we should try to make 8.3 slightly less broken at least, along the lines
>> of my earlier suggestion.
>>
>
> I'm okay with removing this for 8.4, but I think it's too late to
> change the behavior of 8.3.
>
>
>

It's never too late to fix a bug. The current behaviour is just plain
nonsense ... if your xpath expression is 'foo/bar' it ends up searching
for '/xfoo/bar' which can't possibly be right. Surely we can at least
fix that.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-02-26 18:17:18 Re: xpath processing brain dead
Previous Message Tom Lane 2009-02-26 18:00:21 Re: xpath processing brain dead