Sorry,guys, my mistakes, the keywords list should be sorted , and I just append xmlquery at the end of keyword list , that is why parser does not call makexmlexpr.Instead, the parser try to find a function to match xmlquery and faild.
2009/12/31 fangfang liu
<yisuoyanyu888@gmail.com>thanks for Xquery info, I do not start to implenment the xmlquery() itself , maybe call xqilla lib or sth else in the future.
I think xmltable is almost equal to xmlquery , except that it retuns talbeset insead of xml.
I take xmlconcat as an example , add xmlquery whereever xmlconcat appers and nothing else.
the first problem is , I have to make xmlquery accepted by the parser.
2009/12/31 Andrew Dunstan
<andrew@dunslane.net>fangfang liu wrote:
you mean create and replace funtion xmlquery()?
maybe you are right, but I still want to know why parser does not find xmlquery.
We would have to see your code to know why it didn't do what you expect.
What exactly are you intending that this function would do anyway? If you're looking at XQuery support, there are serious issues regarding what library to use, see <http://archives.postgresql.org/pgsql-hackers/2009-11/msg01445.php>
cheers
andrew