Re: Abnormal performance difference between Postgres and MySQL - Mailing list pgsql-performance

From Guillaume Smet
Subject Re: Abnormal performance difference between Postgres and MySQL
Date
Msg-id 1d4e0c10902231533t1b3731cdnda3adff7dd9811bb@mail.gmail.com
Whole thread Raw
In response to Re: Abnormal performance difference between Postgres and MySQL  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Abnormal performance difference between Postgres and MySQL  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-performance
On Tue, Feb 24, 2009 at 12:27 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> If it's not C then string compares are going to probably need special
> indexes to work the way you expect them. (varchar pattern ops).  Look
> here for more information:
>
> http://www.postgresql.org/docs/8.3/static/indexes-opclass.html

It's only relevant for pattern matching (eg LIKE or regexp). AFAICS,
the OP only uses plain equals in his query.

An EXPLAIN ANALYZE output would be nice to diagnose the problem.

--
Guillaume

pgsql-performance by date:

Previous
From: Farhan Husain
Date:
Subject: Re: Abnormal performance difference between Postgres and MySQL
Next
From: Scott Marlowe
Date:
Subject: Re: postgreSQL performance 8.2.6 vs 8.3.3