Re: jsonb iterator not fully initialized

2018-05-27 Thread Dmitry Dolgov
> On 26 May 2018 at 16:47, Andrew Dunstan > wrote: > On 05/26/2018 03:09 AM, Piotr Stefaniak wrote: >> On 2018-05-26 02:02, Peter Eisentraut wrote: >>> >>> It can be fixed this way: >>> >>> --- a/src/backend/utils/adt/jsonb_util.c >>> +++ b/src/backend/utils/adt/jsonb_util.c >>> @@ -901,7 +901,7

Re: jsonb iterator not fully initialized

2018-05-26 Thread Andrew Dunstan
On 05/26/2018 03:09 AM, Piotr Stefaniak wrote: On 2018-05-26 02:02, Peter Eisentraut wrote: I got this error message via -fsanitized=undefined: jsonfuncs.c:5169:12: runtime error: load of value 127, which is not a valid value for type '_Bool' The query was select ts_headline('{}'::jsonb, ts

Re: jsonb iterator not fully initialized

2018-05-26 Thread Piotr Stefaniak
On 2018-05-26 02:02, Peter Eisentraut wrote: > I got this error message via -fsanitized=undefined: > > jsonfuncs.c:5169:12: runtime error: load of value 127, which is not a > valid value for type '_Bool' > > The query was > > select ts_headline('{}'::jsonb, tsquery('aaa & bbb')); > > This calls

jsonb iterator not fully initialized

2018-05-25 Thread Peter Eisentraut
I got this error message via -fsanitized=undefined: jsonfuncs.c:5169:12: runtime error: load of value 127, which is not a valid value for type '_Bool' The query was select ts_headline('{}'::jsonb, tsquery('aaa & bbb')); This calls the C function ts_headline_jsonb_byid_opt(), which calls transfo