XML indexing

From: antony(dot)carvalho(at)lightbase(dot)com(dot)br
To: pgsql-general(at)postgresql(dot)org
Subject: XML indexing
Date: 2012-09-27 20:28:24
Message-ID: p1i5rdg.96988da8265729c933a25dee9f651d09@webmail.lightbase.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
Im trying to use the xpath funtion to get xml text nodes with efficiency,
than i created an index like :=#create index doc_idx on testxml using
btree (((xpath('/book/id/text()', doc))[1]::text));But the index is used
just when i want xpath('/book/id/text()', doc). I want to get any text node
from xml doc without having to index that path every time i query.Do anyone
knows how to index like that ? Tx

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-09-27 20:49:26 Re: problem with recreating database with export
Previous Message Dennis Gearon 2012-09-27 19:49:34 Re: problem with recreating database with export