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

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 (view raw or flat)
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

pgsql-hackers by date

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

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