Index on wildcard text search - Mailing list pgsql-novice

From Leandro Fanzone
Subject Index on wildcard text search
Date
Msg-id 3CC85565.FD27C3A@hasar.com
Whole thread Raw
Responses Re: Index on wildcard text search
List pgsql-novice
Excuse me if this is a silly question. Say I have a table with a text
field, where I perform search operations always in the following form:

SELECT * from table where LOWER(textfield) like 'X%';

Where "X" is one or more letters ("case insensitive begins with").
Does help in some way if I create a binary tree index on that field? I
mean, having a btree index to search with, "begins with" sounds easier,
but the LOWER operation probably invalidates its use. If this has no
sense, do you have another suggestion for the case?
Thank you,

Leandro Fanzone
Compañía HASAR


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Shell Script Execution
Next
From: Tom Lane
Date:
Subject: Re: Index on wildcard text search