Re: [BUGS] Partial index on varchar fields with IN

2007-03-27 Thread Tom Lane
"Guillaume Smet" <[EMAIL PROTECTED]> writes: > test=# CREATE TABLE test_in (field varchar(3)); > CREATE TABLE > test=# CREATE INDEX idx_test_in ON test_in(field) WHERE field IN('1', '2'); > ERROR: functions in index predicate must be marked IMMUTABLE Hmm. This is generating a coercion from varch

[BUGS] Partial index on varchar fields with IN

2007-03-27 Thread Guillaume Smet
Hi all, I recently came accross a problem with the use of IN clause in a partial index with a varchar(3) field. Int, char and text seems to be OK (test case is provided below). Version is 8.2.3 running on a Fedora Core 3 (RPM rebuilt from the PGDG ones). test=# SELECT version();