Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3DC70632F73 for ; Mon, 16 Nov 2009 17:46:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10606-07 for ; Mon, 16 Nov 2009 21:45:58 +0000 (UTC) X-Greylist: delayed 00:28:56.453981 by SQLgrey-1.7.6 Received: from perseverance.services.encs.concordia.ca (perseverance-96.encs.concordia.ca [132.205.96.94]) by mail.postgresql.org (Postfix) with ESMTP id 0EBA4632583 for ; Mon, 16 Nov 2009 17:45:56 -0400 (AST) Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by perseverance.services.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id nAGLGwNe017829 for ; Mon, 16 Nov 2009 16:16:59 -0500 Message-ID: <4B01C14A.5080203@encs.concordia.ca> Date: Mon, 16 Nov 2009 16:16:58 -0500 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Fuzzy match under PostgreSQL 8.0.15 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on perseverance.encs.concordia.ca at 2009/11/16 16:16:59 EST X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200911/40 X-Sequence-Number: 33391 Good afternoon, Under PostgreSQL 8.0.15, what is the good function to do the Fuzzy match between two strings? For example, (1) 'abcddd' vs. 'abc' probably returns 3 (2) 'abcddd' vs. 'ab' probably returns 4 I am looking for functions that could compare how two strings are similar to each other. thanks a lot! -- Lu Ying