From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | 007reader(at)gmail(dot)com |
Cc: | Pg Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable |
Date: | 2017-07-16 18:31:05 |
Message-ID: | CAMkU=1x7gv36cNm1wKrqCKTBvxNoorMfA94XfFWi-XshV5wU_Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sun, Jul 16, 2017 at 11:10 AM, <007reader(at)gmail(dot)com> wrote:
> 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
>
to_tsvector(regconfig, json[b]) and to_tsvector(json[b]) are not the same
thing.
Only the first is immutable, you are using the second.
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | digoal | 2017-07-17 03:17:58 | BUG #14746: sub query's plan not right? |
Previous Message | Tom Lane | 2017-07-16 18:29:45 | Re: BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable |