Re: jsonb contains behaviour weirdness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: jsonb contains behaviour weirdness
Дата
Msg-id 19057.1410545351@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: jsonb contains behaviour weirdness  (Peter Geoghegan <pg@heroku.com>)
Ответы Re: jsonb contains behaviour weirdness  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
Peter Geoghegan <pg@heroku.com> writes:
> I think this is due to commit 364ddc. That removed the extra step that
> had arrays sorted (and then de-duped) ahead of time, which made arrays
> behave like objects at the top level. I think that this sort + de-dup
> step was mischaracterized as purely a performance thing (possibly by
> me). Basically, JsonbDeepContains() is consistent with the previous
> behavior at the top level, but not the current (inadvertently altered)
> behavior. I think the fix is probably a return to the previous
> behavior. I'll take a closer look.

I'm confused.  Are you proposing to return to sort + de-dup of JSON
arrays?  Surely that is completely broken.  Arrays are ordered.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench throttling latency limit
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: jsonb contains behaviour weirdness