Re: jsonb contains behaviour weirdness - Mailing list pgsql-hackers

From Tom Lane
Subject Re: jsonb contains behaviour weirdness
Date
Msg-id 19057.1410545351@sss.pgh.pa.us
Whole thread Raw
In response to Re: jsonb contains behaviour weirdness  (Peter Geoghegan <pg@heroku.com>)
Responses Re: jsonb contains behaviour weirdness
List 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 by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pgbench throttling latency limit
Next
From: Peter Geoghegan
Date:
Subject: Re: jsonb contains behaviour weirdness