Re: how can i mark date function like iscachable - Mailing list pgsql-general

From erobles
Subject Re: how can i mark date function like iscachable
Date
Msg-id 4A773952.8000403@sensacd.com.mx
Whole thread Raw
In response to how can i mark date function like iscachable  (erobles <erobles@sensacd.com.mx>)
Responses Re: how can i mark date function like iscachable
List pgsql-general
another thing i tried to do was:

create or replace function lafecha(timestamp with time zone) returns date
as 'select date($1);'
language 'SQL'
with iscachable;


But  i got the message: ERROR parser: parse error at or near "iscachable";
if  avoid   "with iscachable"  string  the fucntion was created succesfully.


erobles wrote:
> erobles wrote:
>> Hello there!
>>
>> i tried to  create an functional index  like this:
>>
>> create index estdistfecha on estadist (date(fecha));
>>
>>
>> but only get the  next message:
>> ERROR: DefineIndex: index function must be marked iscachable.
>>
>> So, How can i mark the date function iscachable ? :-)
>>
>> i hope your anwsers, anyway thanks to read this !
>>
>>
>>
>
>


pgsql-general by date:

Previous
From: erobles
Date:
Subject: how can i mark date function like iscachable
Next
From: Pavel Stehule
Date:
Subject: Re: how can i mark date function like iscachable