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

Поиск
Список
Период
Сортировка
От Johann Spies
Тема Re: How to build a btree index with integer values on jsonb data?
Дата
Msg-id CAGZ55DSzNcN7xjt8aE+c0BM-NQ+bcwaOefi8hkq6+=+xLWvUBQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to build a btree index with integer values on jsonb data?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список 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 по дате отправления:

Предыдущее
От: Mike Lissner
Дата:
Сообщение: Re: Errors with schema migration and logical replication — expected?
Следующее
От: Achilleas Mantzios
Дата:
Сообщение: Re: why would postgres be throttling a streaming replication slot'ssending?