Index on computed column

From: han(dot)holl(at)pobox(dot)com (Han Holl)
To: pgsql-general(at)postgresql(dot)org
Subject: Index on computed column
Date: 2004-04-20 19:48:42
Message-ID: b93fa83f.0404201148.5be98410@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Can anyone explain to me what I'm doing wrong:
(The first select is to show that the function rubriek exists, and does work).
I want to create an index on a computed column:

palga=> select rubriek(rapport, lseek, 'naamvrouw',0) from main
where rapport = 'T098-20900';
rubriek
-----------
Ramrattan
(1 row)
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.

Thanks in advance,

Han Holl

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Froggy / Froggy Corp. 2004-04-20 19:51:02 PL/SQL question
Previous Message Bill Moran 2004-04-20 18:33:31 Re: Vb databound