From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Pau Marc Munoz Torres <paumarc(dot)munoz(at)bioinf(dot)uab(dot)cat> |
Cc: | PgSQL General ML <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: indexing tables using my owns functions |
Date: | 2007-11-27 18:11:57 |
Message-ID: | 20071127181156.GD19328@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Nov 26, 2007 at 04:54:10PM +0100, Pau Marc Munoz Torres wrote:
> Hi every body
>
> Recently i wrote my own function into postgesql... and it works perfecly!!,
> now i would like use it to index a table like this guy do at the link (
> http://www.faqs.org/docs/ppbook/r24254.htm)
>
> but i get the following error
>
> mhc2db=> create index h2iab on precalc (idr(p1,p4,p6,p7,p9,'H-2*IAb'));
> ERROR: functions in index expression must be marked IMMUTABLE
Where you declare the function, add the modifier IMMUTABLE.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
> -- John F Kennedy
From | Date | Subject | |
---|---|---|---|
Next Message | Douglas McNaught | 2007-11-27 18:33:35 | Re: Connection idle broken |
Previous Message | Tom Lane | 2007-11-27 18:10:35 | Re: Non-unique values problem after 'add column' |