Re: Best way to use indexes for partial match at

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: Best way to use indexes for partial match at
Дата
Msg-id dkvtqg$2dh6$1@news.hub.org
обсуждение исходный текст
Ответ на Best way to use indexes for partial match at beginning  ("Andrus Moor" <eetasoft@online.ee>)
Ответы Re: Best way to use indexes for partial match at  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
> Note that if you don't use the pk in unnamed joins (i.e. you always
> identify the field you're keying off of) then the primary key is
> redundant and not needed, and you could just create the table without it
> and then create the unique index.

Thank you.
Can Postgres use index

CREATE UNIQUE INDEX foo_bar ON foo(bar bpchar_pattern_ops);

in usual WHERE expressions just like regular index ?

I.e can

SELECT * FROM foo WHERE bar='123'

use index foo_bar ?

Andrus.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: TIMESTAMP vs TIMESTAMP WITHOUT TIME ZONE
Следующее
От: juleni@livetrade.cz
Дата:
Сообщение: Re: TIMESTAMP vs TIMESTAMP WITHOUT TIME ZONE