Re: Indexing Metaphone?

From: Richard Poole <rp(at)guests(dot)deus(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Indexing Metaphone?
Date: 2002-06-05 18:39:50
Message-ID: 20020605183950.GA25470@guests.deus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Jun 05, 2002 at 11:12:02AM -0700, Josh Berkus wrote:

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

That's the error message you'd get if pg just didn't know of any
function called "metaphone". Have you done the appropriate CREATE
FUNCTION magic? "\df metaphone" in psql will tell you whether it's
heard of it or not.

Richard

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2002-06-05 18:40:30 Getting PID of current logged user
Previous Message Roberto Mello 2002-06-05 18:20:54 extract and variables in PL/pgSQL