Lexicographic index ?

Поиск
Список
Период
Сортировка
От arnaud.mlist1@free.fr
Тема Lexicographic index ?
Дата
Msg-id 1021541277.3ce37b9db49fd@imp.free.fr
обсуждение исходный текст
Список pgsql-general
Hello, I've been searching since last week how I could implement what looks
basically like a dictionnary with postgres :

I have a big table (million of rows) which contains a varchar column with words
like this for example :

Table Twords:

words
-----------------
guitar
saxophon
flute

And what I want to built a query that tells me if a word given in argument can
be found at least partially in the database. Something like

select * from twords where words||'%' like 'saxophones';

works but uses a sequential scan on the table...

Is it possible to do what I want with postgres or not ? How ? :-)
Thanks for your help !

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

Предыдущее
От: Serkan Bektaş
Дата:
Сообщение: Is there eny e-mail server that uses postgreSQL as backend server for mailboxes&users
Следующее
От: "Marin Dimitrov"
Дата:
Сообщение: Re: Lexicographic index ?