Re: Very long time to execute and Update, suggestions? - Mailing list pgsql-performance

From PFC
Subject Re: Very long time to execute and Update, suggestions?
Date
Msg-id op.soitw1y9th1vuj@localhost
Whole thread Raw
In response to Re: Very long time to execute and Update, suggestions?  (Madison Kelly <linux@alteeve.com>)
List pgsql-performance
>    So I need to either find an Index that will work with regexes or
> re-write my code to update each subdirectory separately and use simpler
> UPDATE statement for each.

    Why don't you use a LTREE type to model your directory tree ? It's been
designed specifically for this purpose and has indexed regular expression
search.

http://www.sai.msu.su/~megera/postgres/gist/ltree/
http://www.sai.msu.su/~megera/postgres/gist/

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: How to speed up word count in tsearch2?
Next
From: Andrew Sullivan
Date:
Subject: Re: pg_autovacuum not having enough suction ?