From: | Remigiusz Sokolowski <rems(at)gdansk(dot)sprint(dot)pl> |
---|---|
To: | Sascha Schumann <sas(at)schell(dot)de> |
Cc: | pgsql-sql(at)hub(dot)org |
Subject: | Re: [SQL] index on aggregate function |
Date: | 1999-02-01 08:50:57 |
Message-ID: | Pine.GS4.4.02A.9902010949440.6052-100000@netra.gdansk.sprint.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> I somewhere read that it is possible to create an index on aggregate functions
> in PostgreSQL. Which syntax do I have to use for it?
>
> test=> CREATE TABLE test ( name VARCHAR(32) );
> CREATE
> test=> CREATE INDEX test_idx ON test lower(name);
> ERROR: parser: parse error at or near "lower"
>
> gives me a parser error.
Right syntax is
CREATE INDEX test_idx ON test (lower(name) text_ops);
I try it and index was generated without error
Rem
-------------------------------------------------------------------*------------
Remigiusz Sokolowski e-mail: rems(at)gdansk(dot)sprint(dot)pl * *
-----------------------------------------------------------------*****----------
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 1999-02-01 14:20:50 | PL/pgSQL / SPI and UTILITY statements |
Previous Message | Remigiusz Sokolowski | 1999-02-01 08:10:24 | Re: [SQL] Character type name?? How to lower case it? |