Thread: contrib\xml2 package's xpath_table function in PostgreSQL

contrib\xml2 package's xpath_table function in PostgreSQL

From
"HX Zheng"
Date:
Hi,
 
We have a huge system based on PostgreSQL with xml2 functions. From the PostgreSQL 8.4 documentation F.38.1. Deprecation notice, it looks like those functions are removed. However, our solution is very huge, and heavily depends on them. 
 
1. Could you please give me some instructions to get them back in the PostgreSQL 8.4?
 
2. Could you please also give me some details if we can find similar functions we can use to replace them in PostgreSQL 8.4?
 
Thank you in advance.
 
Best,
Michael
 
PS. Attached copied from PostgreSQL 8.4 documentation:
================================
 
F.38. xml2

The xml2 module provides XPath querying and XSLT functionality.

F.38.1. Deprecation notice

From PostgreSQL 8.3 on, there is XML-related functionality based on the SQL/XML standard in the core server. That functionality covers XML syntax checking and XPath queries, which is what this module does, and more, but the API is not at all compatible. It is planned that this module will be removed in PostgreSQL 8.4 in favor of the newer standard API, so you are encouraged to try converting your applications. If you find that some of the functionality of this module is not available in an adequate form with the newer API, please explain your issue to pgsql-hackers@postgresql.org so that the deficiency can be addressed.

Re: contrib\xml2 package's xpath_table function in PostgreSQL

From
Robert Haas
Date:
On Sun, Jan 31, 2010 at 4:00 PM, HX Zheng <hx_zheng@hotmail.com> wrote:
> We have a huge system based on PostgreSQL with xml2 functions. From the
> PostgreSQL 8.4 documentation F.38.1. Deprecation notice, it looks like those
> functions are removed. However, our solution is very huge, and heavily
> depends on them.

The functions haven't actually been removed in 8.4, in spite of the
deprecation notice.  But it's very easy to use them in a way that
crashes the entire server, so you're playing with fire.  :-(

...Robert


Re: contrib\xml2 package's xpath_table function in PostgreSQL

From
M Z
Date:
Is there a way to fix it so that those functions are usable in 8.4 without crashing the server?

Thanks,
M Z

On Mon, Feb 1, 2010 at 10:50 AM, Robert Haas <robertmhaas@gmail.com> wrote:
The functions haven't actually been removed in 8.4, in spite of the
deprecation notice.  But it's very easy to use them in a way that
crashes the entire server, so you're playing with fire.  :-(

...Robert

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Re: contrib\xml2 package's xpath_table function in PostgreSQL

From
Robert Haas
Date:
On Mon, Feb 1, 2010 at 1:20 PM, M Z <jm80008@gmail.com> wrote:
> Is there a way to fix it so that those functions are usable in 8.4 without
> crashing the server?

Nobody seems to be interested enough to figure that out and submit a
patch to fix it.  If someone does, I think it would have a good chance
of being accepted.

...Robert


Re: contrib\xml2 package's xpath_table function in PostgreSQL

From
M Z
Date:
I am very interested in doing it. However I am new to postgresql. Could you and anyone here please give me some hint,
whichway I should, which part of code I should focus to fix it?<br /><br />Thanks,<br />M Z<br /><br /><div
class="gmail_quote">On Mon, Feb 1, 2010 at 1:23 PM, Robert Haas <span dir="ltr"><<a
href="mailto:robertmhaas@gmail.com">robertmhaas@gmail.com</a>></span>wrote:<br /><blockquote class="gmail_quote"
style="border-left:1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Mon,
Feb1, 2010 at 1:20 PM, M Z <<a href="mailto:jm80008@gmail.com">jm80008@gmail.com</a>> wrote:<br /> > Is there
away to fix it so that those functions are usable in 8.4 without<br /> > crashing the server?<br /><br
/></div>Nobodyseems to be interested enough to figure that out and submit a<br /> patch to fix it.  If someone does, I
thinkit would have a good chance<br /> of being accepted.<br /><font color="#888888"><br /> ...Robert<br
/></font></blockquote></div><br/>