XML Index again

From: Chris Roffler <croffler(at)earthlink(dot)net>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: XML Index again
Date: 2010-03-07 10:02:29
Message-ID: 3984722a1003070202obc32c63q44002a294af2e6f7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I still have some problems with my xml index

CREATE INDEX xml_index
ON time_series
USING btree
((
(xpath('/AttributeList/Attributes/Attribute/Name/text()',
external_attributes))[1]::text));

When I run the following query the index is not used :

select id from time_series where
array_upper(
(xpath('/AttributeList/Attributes/Attribute[Name="Attribute122021"]',
external_attributes))
, 1) > 0

Any Idea on how to configure the index ?

Thanks
Chris

Responses

Browse pgsql-general by date

  From Date Subject
Next Message AI Rumman 2010-03-07 10:40:44 compare two schemas
Previous Message Allan Kamau 2010-03-07 08:45:25 Avoiding duplicates (or at least marking them as such) in a "cumulative" transaction table.