Re: How to build a btree index with integer values on jsonb data?

From: Johann Spies <johann(dot)spies(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to build a btree index with integer values on jsonb data?
Date: 2018-12-13 08:27:38
Message-ID: CAGZ55DSzNcN7xjt8aE+c0BM-NQ+bcwaOefi8hkq6+=+xLWvUBQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 6 Dec 2018 at 19:27, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> Replace
>
> COLLATE pg_catalog."default"
>
> with
>
> ::integer

which results in

syntax error at or near "::"
LINE 2: ...'::text) -> 'pub_info'::text) ->> '@pubyear'::text)::integer

moving the ::integer into the bracket also:

syntax error at end of input
LINE 2: ...'::text) -> 'pub_info'::text) ->> '@pubyear'::text::integer)
^
I have tried this before.

Thanks for your try.

Regards
Johann

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2018-12-13 08:56:27 Re: why would postgres be throttling a streaming replication slot's sending?
Previous Message Mike Lissner 2018-12-13 07:40:21 Re: Errors with schema migration and logical replication — expected?