Re: [PATCHES] xpath_array with namespaces support

From: "Nikolay Samokhvalov" <nikolay(at)samokhvalov(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org, "Andrew Dunstan" <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] xpath_array with namespaces support
Date: 2007-04-04 13:43:11
Message-ID: e431ff4c0704040643j2374504dq278a205ecd27baf7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 4/4/07, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>
> Am Mittwoch, 4. April 2007 14:43 schrieb Nikolay Samokhvalov:
> > > Why do we even need to support xpath on fragments?
> >
> > Why not? I find it useful and convenient.
>
> Well, rather than inventing bogus root wrapper elements, why not let users
> call xmlelement() to produce the wrapper element themselves?

User may even don't know in what case wrapper element is needed. I mean, if
user works with XML column containing both documents and fragments, then
what must he do? Add wrapper anyway? So, users will add XMLELEMENT in almost
any case.

I'd prefer to keep external interfaces simpler (less thinking in such cases
for users).

--
Best regards,
Nikolay

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-04-04 13:44:42 Re: xpath_array with namespaces support
Previous Message Simon Riggs 2007-04-04 13:42:51 Re: Auto Partitioning

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-04-04 13:44:42 Re: xpath_array with namespaces support
Previous Message Simon Riggs 2007-04-04 13:42:51 Re: Auto Partitioning