Does postgresql 9.0.4 use index on PREFIX%SUFFIX queries? - Mailing list pgsql-general

From Edson Carlos Ericksson Richter
Subject Does postgresql 9.0.4 use index on PREFIX%SUFFIX queries?
Date
Msg-id 003601cc7c46$270a8ea0$751fabe0$@com.br
Whole thread Raw
Responses Re: Does postgresql 9.0.4 use index on PREFIX%SUFFIX queries?
Re: Does postgresql 9.0.4 use index on PREFIX%SUFFIX queries?
Re: Does postgresql 9.0.4 use index on PREFIX%SUFFIX queries?
List pgsql-general

Dear experts,

 

I have the following query:

 

select * from notafiscal where numeroctc like ‘POA%34345’;

 

Prefix is normally 3 characters, suffix varyies.

 

Is Postgresql 9.0.4 able to use an BTREE index on notafiscal.numeroctc to execute this query?

 

Should I create GIST index or something else to speed up the query?

 

 

Thanks,

 

Edson Carlos Ericksson Richter
SimKorp Infomática Ltda

Fone:

(51) 3366-7964

Celular:

(51) 8585-0796

Embedded Image

www.simkorp.com.br

 

Attachment

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Sending Results From One Function As Input into Another Function
Next
From: Venkat Balaji
Date:
Subject: Re: : PostgreSQL Online Backup