Re: Question about pattern matching

From: "Dimitris Sakellarios" <dimitris(dot)sakellarios(at)telesuite(dot)gr>
To: <depesz(at)depesz(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Question about pattern matching
Date: 2008-12-23 19:30:41
Message-ID: 000601c96534$f290f220$0401a8c0@baring
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks depesz,

It was really helpful

Dimitris.

-----Original Message-----
From: depesz(at)depesz(dot)com [mailto:depesz(at)depesz(dot)com]
Sent: Tuesday, December 23, 2008 9:18 PM
To: dimitris(dot)sakellarios(at)telesuite(dot)gr
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Question about pattern matching

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

__________ NOD32 3693 (20081215) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message justin 2008-12-23 21:04:49 need some help with pl-pgsql
Previous Message hubert depesz lubaczewski 2008-12-23 19:17:33 Re: Question about pattern matching