pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: nolan@celery.tssi.com
To: The Hermit Hacker <scrappy@postgresql.org>
Cc: The Hermit Hacker <scrappy@postgresql.org>
Cc: Jan Wieck <JanWieck@Yahoo.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: Joe Conway <mail@joeconway.com>
Cc: \"\"\"Advocacy PostgreSQL\"\"\" <pgsql-advocacy@postgresql.org>
Cc: PostgreSQL-general <pgsql-general@postgresql.org>
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Date: Mon, 23 Jun 2003 13:54:07 +0800
Message-ID: <029201c3394b$dc63e310$2800a8c0@mars> (raw)
References: <20030623053352.1457.qmail@celery.tssi.com>

> Also, unlike PostgreSQL (at least in 7.3), if you define an index on
> the column, mysql appears to use it for LIKE queries.
>
>    "SELECT * FROM table WHERE field LIKE 'nolan%';"

Nonsense.  PostgreSQL indexes such a thing quite happily.  I've used that a
lot.

> is very fast in mysql but not in 7.3, and even non-anchored LIKE searches
> in mysql appear to be using the index.
>
>    "SELECT * FROM table WHERE field LIKE '%nolan%';"
>
> executes considerably faster with an index on field than without one.

Hmmm - that seems iffy to me - have they invented a new field of index
theory?

Chris




view thread (72+ messages)  latest in thread

Message-ID: <029201c3394b$dc63e310$2800a8c0@mars>
Permalink:  ../029201c3394b$dc63e310$2800a8c0@mars/
Also on:    postgresql.org/message-id/029201c3394b$dc63e310$2800a8c0@mars

 · 

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-docs@postgresql.org
  Cc: chriskl@familyhealth.com.au, nolan@celery.tssi.com, scrappy@postgresql.org, JanWieck@Yahoo.com, pgman@candle.pha.pa.us, josh@agliodbs.com, mail@joeconway.com, pgsql-advocacy@postgresql.org, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] interesting PHP/MySQL thread
  In-Reply-To: <029201c3394b$dc63e310$2800a8c0@mars>

* 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