pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: Index to support LIKE '%suffix' queries
Date: Wed, 1 Mar 2006 12:33:01 +0100
Message-ID: <20060301113301.GD9939@webserv.wug-glas.de> (raw)
In-Reply-To: <874q2ik4xf.fsf@mid.deneb.enyo.de>
References: <87mzgfh69m.fsf@mid.deneb.enyo.de>
	<11673.1140888147@sss.pgh.pa.us>
	<877j7jfhqs.fsf@mid.deneb.enyo.de>
	<20060225181346.GA6092@surnet.cl>
	<874q2ik4xf.fsf@mid.deneb.enyo.de>

am  01.03.2006, um  8:19:40 +0100 mailte Florian Weimer folgendes:
> * Alvaro Herrera:
> 
> >> > Florian Weimer <fw@deneb.enyo.de> writes:
> >> >> Is it possible to create an index to support queries of the form
> >> >> "column LIKE '%suffix'" (similar to an ordinary index for LIKE
> >> >> 'prefix%', which I also need)?
> >
> > It is possible to create a functional index on the reverse of the
> > string.
> 
> Okay.  Is there a predefined reverse function?  I couldn't find one
> and I'm wondering if I just missed it.

simple to write one, http://a-kretschmer.de/diverses.shtml

HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    === 



view thread (6+ messages)

Message-ID: <20060301113301.GD9939@webserv.wug-glas.de>
Permalink:  ../20060301113301.GD9939@webserv.wug-glas.de/
Also on:    postgresql.org/message-id/20060301113301.GD9939@webserv.wug-glas.de

 · 

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: andreas.kretschmer@schollglas.com
  Subject: Re: Index to support LIKE '%suffix' queries
  In-Reply-To: <20060301113301.GD9939@webserv.wug-glas.de>

* 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