PG 9.0.3. How to select rows from xml

From: emanov <emanovs(at)yandex(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PG 9.0.3. How to select rows from xml
Date: 2011-04-02 19:47:12
Message-ID: 1301773632062-4278076.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all!
What i need is transform xml document to table like that:
insert into tmp("Name", "Value")
select t.Name, t.Value from myxml.Nodes("/doc/person") as
t('Name:varchar|Value:int')
or similar. In fact I have many rows with many columns.

How I can do it with PG 9.0.3 where I can't find xpath_table?

--
View this message in context: http://postgresql.1045698.n5.nabble.com/PG-9-0-3-How-to-select-rows-from-xml-tp4278076p4278076.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2011-04-02 20:10:18 Re: Another swing at JSON
Previous Message Tom Lane 2011-04-02 19:40:23 Re: Process local hint bit cache