BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable

From: 007reader(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: 007reader(at)gmail(dot)com
Subject: BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable
Date: 2017-07-16 18:10:04
Message-ID: 20170716181004.9231.22003@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14745
Logged by: Bob Jones
Email address: 007reader(at)gmail(dot)com
PostgreSQL version: 10beta2
Operating system: Debian in Docker container
Description:

According to https://www.postgresql.org/about/news/1763/ Beta 2 marked
to_tsvector(regconfig, json[b]) immutable, but it still doesn't work, at
least in the docker version of Beta 2. Here is the result:

create table test (j JSON, jb JSONB);
CREATE TABLE

create index j_ixd on test using gin(to_tsvector(j));
ERROR: functions in index expression must be marked IMMUTABLE

create index jb_ixd on test using gin(to_tsvector(jb));
ERROR: functions in index expression must be marked IMMUTABLE

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-07-16 18:29:45 Re: BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable
Previous Message Tom Lane 2017-07-15 14:39:04 Re: function jsonb_pretty only outputs first character of result