Indexing Metaphone?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Indexing Metaphone?
Date: 2002-06-05 18:12:02
Message-ID: 200206051112.02090.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Folks,

I'm building a database that does a lot of fuzzy-string searches. As such,
I'd like to index the metaphone results of certain columns. However, I get
this when I try:

jwnet=> CREATE INDEX idx_locations_metaphone ON
locations(metaphone(location_name, 12));
ERROR: parser: parse error at or near "12"
jwnet=>

is this a syntax error, or do I need to create a column to hold the metaphone
values in order to index them?

--
-Josh Berkus

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2002-06-05 18:20:54 extract and variables in PL/pgSQL
Previous Message Bruce Momjian 2002-06-05 16:33:48 Re: Further info : Very high load average but no cpu utilization