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

Поиск
Список
Период
Сортировка
Искать
От
007reader@gmail.com
Тема
[BUGS] BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable
Дата
Msg-id
20170716181004.9231.22003@wrigleys.postgresql.org
Список
Дерево обсуждения
[BUGS] BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable 007reader@gmail.com
Re: [BUGS] BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUGS] BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable Jeff Janes <jeff.janes@gmail.com>
The following bug has been logged on the website:

Bug reference:      14745
Logged by:          Bob Jones
Email address:      007reader@gmail.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



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
FAQ