From: Grant Hutchins and Peter Jaros <grant@pivotallabs.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5781: unaccent() function should be marked IMMUTABLE
Date: Thu, 2 Dec 2010 15:44:29 GMT
Message-ID: <201012021544.oB2FiTn1041521@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5781
Logged by: Grant Hutchins and Peter Jaros
Email address: grant@pivotallabs.com
PostgreSQL version: 9.0.1
Operating system: Mac OS X 10.6.4
Description: unaccent() function should be marked IMMUTABLE
Details:
The unaccent(text) function supplied by contrib/unaccent is marked VOLATILE.
This prevents it from being used in indexes. We believe that the function
meets the requirements to be marked IMMUTABLE.
=# CREATE TABLE foo ();
CREATE TABLE
=# CREATE INDEX bar ON foo ( unaccent('baz') );
ERROR: functions in index expression must be marked IMMUTABLE
=# ALTER FUNCTION unaccent(text) IMMUTABLE;
ALTER FUNCTION
=# CREATE INDEX bar ON foo ( unaccent('baz') );
CREATE INDEX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: grant@pivotallabs.com
Subject: Re: BUG #5781: unaccent() function should be marked IMMUTABLE
In-Reply-To: <201012021544.oB2FiTn1041521@wwwmaster.postgresql.org>
References: <201012021544.oB2FiTn1041521@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox