Re: Joins on many-to-many relations.

From: Wiebe Cazemier <halfgaar(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Joins on many-to-many relations.
Date: 2007-03-15 14:16:07
Message-ID: etbkf8$2me$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thursday 15 March 2007 15:05, Rodrigo De León wrote:

> From http://www.postgresql.org/docs/8.2/static/indexes-types.html :
>
> "The optimizer can also use a B-tree index for queries involving the
> pattern matching operators LIKE and ~ if the pattern is a constant and
> is anchored to the beginning of the string ? for example, col LIKE
> 'foo%' or col ~ '^foo', but not col LIKE '%bar'."

It made the query faster (1500 instead of 2500 ms), but not fast enough. But,
this is good to know, although I often need the '%foobar%' search string...

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message T E Schmitz 2007-03-15 15:45:08 join table with itself?
Previous Message Rodrigo De León 2007-03-15 14:05:45 Re: Joins on many-to-many relations.