Re: Very long time to execute and Update, suggestions?

From: PFC <lists(at)boutiquenumerique(dot)com>
To: "Madison Kelly" <linux(at)alteeve(dot)com>, "Philip Hallstrom" <postgresql(at)philip(dot)pjkh(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Very long time to execute and Update, suggestions?
Date: 2005-03-31 21:28:03
Message-ID: op.soitw1y9th1vuj@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Andrew Sullivan 2005-03-31 22:13:35 Re: pg_autovacuum not having enough suction ?
Previous Message Josh Berkus 2005-03-31 20:50:45 Re: How to speed up word count in tsearch2?