Re: [SQL] index on aggregate function - Mailing list pgsql-sql

From Remigiusz Sokolowski
Subject Re: [SQL] index on aggregate function
Date
Msg-id Pine.GS4.4.02A.9902151448560.25743-100000@netra.gdansk.sprint.pl
Whole thread Raw
In response to Re: [SQL] index on aggregate function  ("jose' soares" <sferac@bo.nettuno.it>)
List pgsql-sql
> --lower() works with varchar...
>
> prova=> CREATE TABLE test ( name VARCHAR(32) );
> CREATE
> prova=> insert into test values ('AAAA');
> INSERT 188475 1
> prova=> select lower(name) from test;
> lower
> -----
> aaaa
> (1 row)
>
> but it doesn't work on create index...
>
> prova=> drop table test;
> DROP
> prova=> CREATE TABLE test ( name VARCHAR(32) );
> CREATE
> prova=> CREATE INDEX test_idx ON test lower(nome);
> ERROR:  parser: parse error at or near "lower"

Yes, You're right - I check it now - strange thing - and I have nothing
more to say
    Rem

-------------------------------------------------------------------*------------
Remigiusz Sokolowski      e-mail: rems@gdansk.sprint.pl           * *
-----------------------------------------------------------------*****----------


pgsql-sql by date:

Previous
From: "jose' soares"
Date:
Subject: Re: [SQL] index on aggregate function
Next
From: Justin Subert
Date:
Subject: [SQL] difficulties combining nextval and rules