Re: Notes on testing Postgres 10b1

From: Greg Stark <stark(at)mit(dot)edu>
To: Josh Berkus <josh(at)berkus(dot)org>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Notes on testing Postgres 10b1
Date: 2017-06-10 02:54:03
Message-ID: CAM-w4HM124j=ArmkfO5NF4a8cL9Vmv7mMQoSwKyMRktmZk78tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 7 June 2017 at 01:01, Josh Berkus <josh(at)berkus(dot)org> wrote:
> P3: apparently jsonb_to_tsvector with lang parameter isn't immutable?
> This means that it can't be used for indexing:
>
> libdata=# create index bookdata_fts on bookdata using gin ((
> to_tsvector('english',bookdata)));
> ERROR: functions in index expression must be marked IMMUTABLE

I don't have a machine handy to check on but isn't this a strange
thing to do? Isn't there a GIN opclass on jsonb itself which would be
the default if you didn't have that to_tsvector() call -- and which
would also work properly with the jsonb operators?

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vinayak Pokale 2017-06-10 03:23:33 Re: ECPG: WHENEVER statement with DO CONTINUE action
Previous Message Amit Kapila 2017-06-10 02:11:14 Re: UPDATE of partition key