pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@boutiquenumerique.com>
To: Madison Kelly <linux@alteeve.com>
To: Philip Hallstrom <postgresql@philip.pjkh.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Very long time to execute and Update, suggestions?
Date: Thu, 31 Mar 2005 23:28:03 +0200
Message-ID: <op.soitw1y9th1vuj@localhost> (raw)
In-Reply-To: <424C54D7.5020906@alteeve.com>
References: <424C49A1.1090003@alteeve.com>
	<424C54D7.5020906@alteeve.com>
	<20050331111709.P55747@wolf.pjkh.com>


>    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/



view thread (3+ messages)

Message-ID: <op.soitw1y9th1vuj@localhost>
Permalink:  ../op.soitw1y9th1vuj@localhost/
Also on:    postgresql.org/message-id/op.soitw1y9th1vuj@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: lists@boutiquenumerique.com, linux@alteeve.com, postgresql@philip.pjkh.com
  Subject: Re: Very long time to execute and Update, suggestions?
  In-Reply-To: <op.soitw1y9th1vuj@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox