Re: [PERFORM] LIKE query problem

2006-09-18 Thread Marc McIntyre
Thanks Tom, Is that documented somewhere? I can't seem to see any mention of it in the docs. Tom Lane wrote: Marc McIntyre <[EMAIL PROTECTED]> writes: ... Is there a way to perform this efficiently in one query ? No, because you're hoping for an indexscan optimi

[PERFORM] LIKE query problem

2006-09-18 Thread Marc McIntyre
I'm having a problem with a simple query, that finds children of a node, using a materialized path to the node. The query: select n1.id from nodes n1, nodes n2 where n1.path like n2.path || '%' and n2.id = 14; QUERY PLAN

[PERFORM] Slow Query

2005-07-13 Thread Marc McIntyre
ted | timestamp without time zone | not null created_userid | character varying(255) | not null updated | timestamp without time zone | not null updated_userid | character varying(255) | not null published | timestamp without time zone | published_userid | character varying(255) | status_chan