Re: Current state of XML capabilities in PostgreSQL?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Current state of XML capabilities in PostgreSQL?
Date: 2009-09-16 16:24:47
Message-ID: 4AB1114F.3080709@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nathan Widmyer wrote:
> I just plan on storing already-made XML in a column, then be able to
> search on it using where clauses with XPath expressions (e.g. select
> tv_show,xpath('/station/times', xml_data) from table_with_xml where
> xpath('/name', xml_data)='Captain Kangaroo'). I do understand there
> is an xpath() function to return data, so that's solved for.

why would you store data thats wrapped in two copies of its fieldname
along with other punctuation? wouldn't it make more sense to
decompose your XML source into proper tables so proper indexes and
relational sql queries can be made? otherwise, every query turns
into a massive sequential scan and parsing operation.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-09-16 16:53:08 Re: Current state of XML capabilities in PostgreSQL?
Previous Message Madison Kelly 2009-09-16 14:54:30 Re: I need a Postgres Admin $130K + 20K in NYC Any Ideas?