News for hackers. Stuff that matters.
Re:PostgreSQL 8.3 Released by bayareaguy on Tuesday February 05, 2008 @12:35AM (#109546)
Although you can't index xml columns directly, you can define functional indexes over them. As long as you are careful to use the same function in your where clauses the index can be used.

Here's an example taken from Nikolay Samokhvalov's XML Support in PostgreSQL paper[1].

  CREATE INDEX i_table1_xdata ON table1 
  USING btree( xpath_array(xdata, '//person/@name') ); 
[1] - http://www.pgcon.org/2007/schedule/attachments/16-xml_in_pos...

There are no comments on this comment yet.