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

Re: proposal casting from XML[] to int[], numeric[], text[]

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Nikolay Samokhvalov" <nikolay(at)samokhvalov(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org,"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
Subject: Re: proposal casting from XML[] to int[], numeric[], text[]
Date: 2007-10-08 10:53:38
Message-ID: 200710081253.39227.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
Am Freitag, 28. September 2007 schrieb Nikolay Samokhvalov:
> what should be returned for XML like "<em><strong>PostgreSQL</strong>
> is a powerful, open source relational database system</em>" if user
> requests for text under "em" node? In XML world, the correct answer is
> "PostgreSQL  is a powerful, open source relational database system" --
> concatenation of all strings from the node itself and all its
> descendants, in the correct order. Will be this expected for RDBMS
> users?).

Well, if that is the defined behavior for XPath, then that's what we should 
do.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

pgsql-hackers by date

Next:From: Hannu KrosingDate: 2007-10-08 11:51:21
Subject: Re: Including Snapshot Info with Indexes
Previous:From: Peter EisentrautDate: 2007-10-08 10:41:41
Subject: Re: Encoding and i18n

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