sequential scans and the like operator

From: "Roderick A(dot) Anderson" <raanders(at)tincan(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: sequential scans and the like operator
Date: 2002-01-08 12:50:53
Message-ID: Pine.LNX.4.10.10201080438400.6816-100000@tincan.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

There is a discussion going on on the sql-ledger mailing list concerning
whether indexes will provide any performance improvements. The one that
caught my eye was whether using LIKE in a statement would force a
sequential scan.

I tried checking the PG list archives but fts.postgresql.org is a little
slow - as many know - plus a quick search using google didn't turn up
much.

My guesstimation is a leading or mid-field wildcard (_, %) would force a
sequential scan but a trailing wildcard would not (should not?).

I think (seem to remember) that this was discussed either here or on
the HACKERS list. A pointer to the appropriate message/thread would be
great.

TIA,
Rod
--
Let Accuracy Triumph Over Victory

Zetetic Institute
"David's Sling"
Marc Stiegler

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-01-08 14:22:04 Re: constants for return value from PQftype?
Previous Message Colm McCartan 2002-01-08 11:09:46 Re: JDO implementation?