| From: | Tomasz Myrta <jasiek(at)klaster(dot)net> |
|---|---|
| To: | Elielson Fontanezi <ElielsonF(at)prodam(dot)sp(dot)gov(dot)br> |
| Cc: | pgsql-sql <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: ERROR: DefineIndex: index function must be marked iscachable |
| Date: | 2003-07-25 19:22:28 |
| Message-ID: | 3F218374.9000204@klaster.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
Dnia 2003-07-25 21:09, Użytkownik Elielson Fontanezi napisał:
> Hi all!
>
> What can I do in this case?
> I could not found anything about iscachable.
>
> postgres$ cat in.sql
> create index bt_proposta_f01 on proposta
> using btree (func_cod_secretaria(nr_proponente));
>
> postgres$ psql -d escola -f in.sql
> psql:in.sql:2: ERROR: DefineIndex: index function must be marked iscachable
> postgres$
You should follow the error. Your function func_cod_secretaria has to be
declared as cacheable. (Look into documentation - sql commands / create
function). IMMUTABLE function should help.
This function has also for some nr_proponente returns always the same
value (look at IMMUTABLE description)
Regards,
Tomasz Myrta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2003-07-25 19:24:56 | Re: [SQL] ERROR: DefineIndex: index function must be |
| Previous Message | Stephan Szabo | 2003-07-25 19:21:15 | Re: [SQL] ERROR: DefineIndex: index function must be marked iscachable |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2003-07-25 19:24:56 | Re: [SQL] ERROR: DefineIndex: index function must be |
| Previous Message | Stephan Szabo | 2003-07-25 19:21:15 | Re: [SQL] ERROR: DefineIndex: index function must be marked iscachable |