Re: Index on computed column

From: Kris Jurka <books(at)ejurka(dot)com>
To: Han Holl <han(dot)holl(at)pobox(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Index on computed column
Date: 2004-04-26 18:45:28
Message-ID: Pine.BSO.4.56.0404261344520.6373@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Tue, 20 Apr 2004, Han Holl wrote:

> palga=> create index nm_idx on main (rubriek(rapport, lseek, 'naamvrouw',0));
> ERROR: parser: parse error at or near "'naamvrouw'" at character 54
> palga=>
>
> This is postgresql-7.3.4-3.rhl9.
>

You cannot create functional indexes with a constant in the 7.3 series.
This capability was only added in the 7.4 series. You can work around
this problem by creating a wrapper function that calls the real function
with the constants and creating the index on the wrapper function.

Kris Jurka

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guy Fraser 2004-04-26 18:53:09 Re: 7.3.4 on Linux: UPDATE .. foo=foo+1 degrades massivly
Previous Message Kris Jurka 2004-04-26 18:36:04 Re: Postgres DB