Functional indices with const params. - Mailing list pgsql-general

From Denis Perchine
Subject Functional indices with const params.
Date
Msg-id 00080313043603.22979@dyp.perchine.com
Whole thread Raw
Responses Re: Functional indices with const params.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello,

is it possible to create functional indices with constant params?

I tried to do
create index ix_s_m on stats(date_part('month', sent_date));

And get
ERROR:  parser: parse error at or near "'"

If it is not possible is there any workarounds for this?

--
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

pgsql-general by date:

Previous
From: Guy Fraser
Date:
Subject: Re: VS: Backup/dump of huge tables and performance
Next
From: Daniel Betaille
Date:
Subject: Documentation