Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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.



In response to


pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group