Re: How to build a btree index with integer values on jsonb data? - Mailing list pgsql-general

From Johann Spies
Subject Re: How to build a btree index with integer values on jsonb data?
Date
Msg-id CAGZ55DSzNcN7xjt8aE+c0BM-NQ+bcwaOefi8hkq6+=+xLWvUBQ@mail.gmail.com
Whole thread Raw
In response to Re: How to build a btree index with integer values on jsonb data?  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-general
On Thu, 6 Dec 2018 at 19:27, Laurenz Albe <laurenz.albe@cybertec.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


pgsql-general by date:

Previous
From: Mike Lissner
Date:
Subject: Re: Errors with schema migration and logical replication — expected?
Next
From: Achilleas Mantzios
Date:
Subject: Re: why would postgres be throttling a streaming replication slot'ssending?