pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-sql@postgresql.org
Subject: Indexing Metaphone?
Date: Wed, 5 Jun 2002 11:12:02 -0700
Message-ID: <200206051112.02090.josh@agliodbs.com> (raw)

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




view thread (4+ messages)  latest in thread

Message-ID: <200206051112.02090.josh@agliodbs.com>
Permalink:  ../200206051112.02090.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200206051112.02090.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com
  Subject: Re: Indexing Metaphone?
  In-Reply-To: <200206051112.02090.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox