From: | "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: index refuses to build |
Date: | 2011-12-29 23:33:46 |
Message-ID: | 20111230003346.519f5fa8@anubis.defcon1 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-novice |
On Thu, 29 Dec 2011 17:16:22 -0600
Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
Woops, sorry: reposting on the ML.
> > Decomposing it reveals that it is the 'unaccent' part that
> > blocks:
> >
> > CREATE INDEX tst1m_name_lu_ix ON tst1m(unaccent(name));
> > ERROR: functions in index expression must be marked IMMUTABLE
> >
> > From what I found on the web I also tried to cast it to text,
> > but the error's still here:(
>
> your problem is the unaccent function. it's defined stable because
> the rules function it depends on can change after the index is built
> -- that would effectively introduce index corruption. it's possible
> to bypass that restriction, but are you sure that's what you want to
> do?
Well, I don't know how to achieve what I want another way.
Overriding this restriction can effectively become a concern
as I use unaccent.rules (modified for fr and de) and I can't be
absolutely sure it won't evolve since the DB is to be used by
(mostly) CE people - so, if I don't have all modifications for
v1.0, there's a risk.
My goal is to have a case insensitive + unaccented index.
JY
--
As they say about Dungeons and Dragons, "Life's a die, and then you
bitch."
From | Date | Subject | |
---|---|---|---|
Next Message | Nicolas Barbier | 2011-12-29 23:42:51 | Re: 16-bit page checksums for 9.2 |
Previous Message | Merlin Moncure | 2011-12-29 23:16:22 | Re: index refuses to build |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-12-30 03:40:19 | Re: [NOVICE] index refuses to build |
Previous Message | Merlin Moncure | 2011-12-29 23:16:22 | Re: index refuses to build |