Searching in a string with index

Поиск
Список
Период
Сортировка
От Alexander B.
Тема Searching in a string with index
Дата
Msg-id 46A74D75.7000407@yahoo.com.br
обсуждение исходный текст
Ответы Re: Searching in a string with index  ("Igor Neyman" <ineyman@perceptron.com>)
Список pgsql-admin
Hi,
When I search some words into a varchar column and this column has an index.
Does Postgres use index??

The search is done this way:

create table tb_gen_person (
  pes_nro_doc numeric(14) not null,
  pes_name varchar(150) not null,
  constraint pk_person PRIMARY KEY(pes_nro_doc)
);
create index ix_person_01 on tb_gen_person (pes_name);

select *
from tb_gen_person
where pes_name like '%albert%';

Not considering upper case, or tsearch2, this type of search use index
somehow?
I overhear that if the search has more than 5 characters, probably would
use index!! Is this true?

Thanks

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Jayakumar_Mukundaraju"
Дата:
Сообщение: Backup Scheduler...
Следующее
От: "Vishal Arora"
Дата:
Сообщение: Re: Backup Scheduler...