Re: Are piped columns indexable - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: Are piped columns indexable
Date
Msg-id b42b73150803121355j439b91a7p7789e93255ed5d52@mail.gmail.com
Whole thread Raw
In response to Are piped columns indexable  ("Mark Steben" <msteben@autorevenue.com>)
List 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 by date:

Previous
From: "Mark Steben"
Date:
Subject: Are piped columns indexable
Next
From: Craig Ringer
Date:
Subject: Repeated execution of identical subqueries