Re: Are piped columns indexable

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Are piped columns indexable
Дата
Msg-id b42b73150803121355j439b91a7p7789e93255ed5d52@mail.gmail.com
обсуждение исходный текст
Ответ на Are piped columns indexable  ("Mark Steben" <msteben@autorevenue.com>)
Список pgsql-performance
On Wed, Mar 12, 2008 at 4:38 PM, Mark Steben <msteben@autorevenue.com> wrote:
> Given table t with columns a, b, c, d
>
>   And index on t using btree (a,b)
>
>    Is this indexable:
>
>   Select * from t where a || b = '124cab'  (or whatever)
>
>     Assume a and b are defined as char(3)
> I have tried various op classes and so far have just gotten sequential scans


create index t_idx on t((a || b));

:-)

merlin

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

Предыдущее
От: "Mark Steben"
Дата:
Сообщение: Are piped columns indexable
Следующее
От: Craig Ringer
Дата:
Сообщение: Repeated execution of identical subqueries