Re: select from an index

From: Steve Atkins <steve(at)blighty(dot)com>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: select from an index
Date: 2007-11-27 16:38:16
Message-ID: E0F82ED2-891E-4073-8062-B3E1D0365173@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Nov 27, 2007, at 3:15 AM, Pau Marc Munoz Torres wrote:

> Hi
>
> Recently i created an index in a table using a function (not a
> column) as following
>
> create index H2IAb on precalc (idr(p1,p4,p6,p7,p9,'H-2*IAb'));,
>
>
> now, i would like to perform a query using this index, something like
>
>
> Select * from precalc where h2iab>2
>
> but obviously h2iab is not a column...
>
> some of you knows what i should do?
>

select * from precalc where idr(p1,p4,p6,p7,p9,'H-2*IAb') > 2

Cheers,
Steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Stark 2007-11-27 16:50:29 Re: Why LIMIT and OFFSET are commutative
Previous Message Brendan Jurd 2007-11-27 16:32:27 Re: [GENERAL] Empty arrays with ARRAY[]