Skip site navigation (1) Skip section navigation (2)

Re: Question about pattern matching

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: dimitris(dot)sakellarios(at)telesuite(dot)gr
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about pattern matching
Date: 2008-12-23 19:17:33
Message-ID: 20081223191733.GA19336@depesz.com (view raw or flat)
Thread:
Lists: pgsql-general
On Tue, Dec 23, 2008 at 06:05:08PM +0200, dimitris(dot)sakellarios(at)telesuite(dot)gr wrote:
> QUESTION
> --------
> Pls let me know which is the best way to match the
> following pattern against this table and Receive id = 8
> that is the longest matching pattern from left to right.

check this:
http://www.depesz.com/index.php/2008/03/04/searching-for-longest-prefix/
read also the comments

additionally, check this url: http://pgfoundry.org/projects/prefix

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Responses

pgsql-general by date

Next:From: Dimitris SakellariosDate: 2008-12-23 19:30:41
Subject: Re: Question about pattern matching
Previous:From: dimitris.sakellariosDate: 2008-12-23 18:12:19
Subject: Re: Question about pattern matching

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group