Re: [SQL] index on aggregate function
От | Remigiusz Sokolowski |
---|---|
Тема | Re: [SQL] index on aggregate function |
Дата | |
Msg-id | Pine.GS4.4.02A.9902010949440.6052-100000@netra.gdansk.sprint.pl обсуждение исходный текст |
Ответ на | index on aggregate function (Sascha Schumann <sas@schell.de>) |
Ответы |
Re: [SQL] index on aggregate function
|
Список | 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@gdansk.sprint.pl * * -----------------------------------------------------------------*****----------
В списке pgsql-sql по дате отправления: