From: Wiebe Cazemier <halfgaar@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: Joins on many-to-many relations.
Date: Thu, 15 Mar 2007 15:16:07 +0100
Message-ID: <etbkf8$2me$1@sea.gmane.org> (raw)
References: <et94vu$qdt$1@sea.gmane.org>
<5.2.1.1.0.20070314133826.050002b0@pop6.sympatico.ca>
<et9r79$kj5$1@sea.gmane.org>
<a55915760703150705j3b4c2b3esd94d4a27d31ee658@mail.gmail.com>
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...
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: halfgaar@gmx.net
Subject: Re: Joins on many-to-many relations.
In-Reply-To: <etbkf8$2me$1@sea.gmane.org>
* 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