Re: xpath_array with namespaces support

From: "Nikolay Samokhvalov" <nikolay(at)samokhvalov(dot)com>
To: "Bruce Momjian" <bruce(at)momjian(dot)us>
Cc: PGSQL-Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: xpath_array with namespaces support
Date: 2007-03-04 16:29:07
Message-ID: e431ff4c0703040829h3b5228d3occb4dc6bb801dce@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 3/3/07, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
> I tried this patch bug found this regression failure:
>
> -- Considering only built-in procs (prolang = 12), look for multiple uses
> -- of the same internal function (ie, matching prosrc fields). It's OK to
> -- have several entries with different pronames for the same internal function,
> -- but conflicts in the number of arguments and other critical items should
> -- be complained of. (We don't check data types here; see next query.)
> -- Note: ignore aggregate functions here, since they all point to the same
> -- dummy built-in function.
> SELECT p1.oid, p1.proname, p2.oid, p2.proname
> FROM pg_proc AS p1, pg_proc AS p2
> WHERE p1.oid < p2.oid AND
> p1.prosrc = p2.prosrc AND
> p1.prolang = 12 AND p2.prolang = 12 AND
> (p1.proisagg = false OR p2.proisagg = false) AND
> (p1.prolang != p2.prolang OR
> p1.proisagg != p2.proisagg OR
> p1.prosecdef != p2.prosecdef OR
> p1.proisstrict != p2.proisstrict OR
> p1.proretset != p2.proretset OR
> p1.provolatile != p2.provolatile OR
> p1.pronargs != p2.pronargs);
> oid | proname | oid | proname
> ------+-------------+------+-------------
> 2931 | xpath_array | 2932 | xpath_array
> (1 row)
>
> This is because you are calling xpath_array with 2 and 3 arguments.
> Seems we don't do this anywhere else.
>
> I also had to add a #ifdef USE_LIBXML around xml_xmlnodetotext(). Please
> research a fix to this an resubmit. Thanks.

OK.
I'll fix these issues and extend the patch with resgression tests and
docs for xpath_array(). I'll resubmit it very soon.

--
Best regards,
Nikolay

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-03-04 18:07:44 Re: ERROR: operator does not exist: integer !=- integer
Previous Message Shane Ambler 2007-03-04 15:56:38 Re: ERROR: operator does not exist: integer !=- integer

Browse pgsql-patches by date

  From Date Subject
Next Message Nikolay Samokhvalov 2007-03-05 01:20:45 Re: xpath_array with namespaces support
Previous Message Bruce Momjian 2007-03-04 03:57:02 Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch