pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Artur Zając <azajac@ang.com.pl>
To: 'Richard Huxton' <dev@archonet.com>
Cc: gnanam@zoniac.com
Cc: pgsql-performance@postgresql.org
Subject: Re: How to boost performance of queries containing pattern matching characters
Date: Mon, 14 Feb 2011 09:09:55 +0100
Message-ID: <003d01cbcc1e$91241fa0$b36c5ee0$@ang.com.pl> (raw)
In-Reply-To: <4D58DEA2.3040202@archonet.com>
References: <004601cbcc14$acfe99d0$06fbcd70$@com>
	<4D58D752.2000100@archonet.com>
	<004701cbcc18$c54c8980$4fe59c80$@com>
	<003801cbcc1a$37d2f7e0$a778e7a0$@ang.com.pl>
	<4D58DEA2.3040202@archonet.com>

> Looks like you've almost re-invented the trigram module:
>   http://www.postgresql.org/docs/9.0/static/pgtrgm.html

I didn't know about this module.
Idea to use three letters strings and use Full Text Search is the same, but
the rest is not.

Is the idea to use similarity for this problem is really correct? How should
be query constructed to return really all records matching ILIKE criteria?


-------------------------------------------
Artur Zajac




view thread (13+ messages)  latest in thread

Message-ID: <003d01cbcc1e$91241fa0$b36c5ee0$@ang.com.pl>
Permalink:  ../003d01cbcc1e$91241fa0$b36c5ee0$@ang.com.pl/
Also on:    postgresql.org/message-id/003d01cbcc1e$91241fa0$b36c5ee0$@ang.com.pl

 · 

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-performance@postgresql.org
  Cc: azajac@ang.com.pl, dev@archonet.com, gnanam@zoniac.com
  Subject: Re: How to boost performance of queries containing pattern matching characters
  In-Reply-To: <003d01cbcc1e$91241fa0$b36c5ee0$@ang.com.pl>

* 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