Issue with creation of Partial_indexes (Immutable?)

From: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Issue with creation of Partial_indexes (Immutable?)
Date: 2008-08-25 04:23:03
Message-ID: 1219638183.2765.17.camel@neuromancer.home.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

CREATE INDEX idx_d_trh_code_id_partial
ON xmms.d_trh_table
USING btree
(code_id) where code_id not in ('P000','000') and code_id is not null;
ERROR: functions in index predicate must be marked IMMUTABLE

Just trying something new.

I want to create partial indexes on code_id which are not null and not
P000/000

the ones I want are like HMD11 or UE935 or OIOR11 etc.

not sure where the IMMUTABLE part is coming from..

Clue?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-08-25 04:24:22 Re: Connection to second database on server
Previous Message Troy Rasiah 2008-08-25 04:19:54 Re: Connection to second database on server