Re: how can i mark date function like iscachable

From: erobles <erobles(at)sensacd(dot)com(dot)mx>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how can i mark date function like iscachable
Date: 2009-08-03 19:24:02
Message-ID: 4A773952.8000403@sensacd.com.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 !
>>
>>
>>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2009-08-03 19:28:05 Re: how can i mark date function like iscachable
Previous Message erobles 2009-08-03 19:03:23 how can i mark date function like iscachable