pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 007reader@gmail.com
To: pgsql-bugs@postgresql.org
Cc: 007reader@gmail.com
Subject: BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable
Date: Sun, 16 Jul 2017 18:10:04 +0000
Message-ID: <20170716181004.9231.22003@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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


view thread (3+ messages)  latest in thread

Message-ID: <20170716181004.9231.22003@wrigleys.postgresql.org>
Permalink:  ../20170716181004.9231.22003@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170716181004.9231.22003@wrigleys.postgresql.org

 · 

reply

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: 007reader@gmail.com
  Subject: Re: BUG #14745: to_tsvector(regconfig, json[b]) is NOT immutable
  In-Reply-To: <20170716181004.9231.22003@wrigleys.postgresql.org>
  References: <20170716181004.9231.22003@wrigleys.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