Re: [HACKERS] json(b) equality rules

2014-04-03 Thread Peter Geoghegan
On Thu, Apr 3, 2014 at 7:43 AM, Andrew Dunstan wrote: > I don't think we should follow these rules at all. Json is not Javascript, > and these are Javascript rules, not Json rules. I'm entirely opposed to > treating 0, "0", false, and [0] as equal. The equality rule we actually have > for jsonb is

Re: [HACKERS] json(b) equality rules

2014-04-03 Thread Hannu Krosing
On 04/03/2014 04:32 AM, Oleg Bartunov wrote: > Hi there, > > I'm wondering if we should follow all js equility rules as > nicely visualized in > http://strilanc.com/visualization/2014/03/27/Better-JS-Equality-Table.html Probably not as JSON is general interchange format. If somebody wants JavaScri

Re: [HACKERS] json(b) equality rules

2014-04-03 Thread Andrew Dunstan
On 04/03/2014 05:02 AM, Oleg Bartunov wrote: Well, we don't supported Infinity and NaN in json(b), as well as Json standard :) Now we need a script, which generated nice html table. (Oleg, please try not to top-post.) I don't think we should follow these rules at all. Json is not Javascript,

Re: [HACKERS] json(b) equality rules

2014-04-03 Thread Oleg Bartunov
Well, we don't supported Infinity and NaN in json(b), as well as Json standard :) Now we need a script, which generated nice html table. On Thu, Apr 3, 2014 at 12:40 PM, Yeb Havinga wrote: > On 2014-04-03 09:40, Oleg Bartunov wrote: >> >> Sure, we don't follow. I mean should we add to documentati

Re: [HACKERS] json(b) equality rules

2014-04-03 Thread Yeb Havinga
On 2014-04-03 09:40, Oleg Bartunov wrote: Sure, we don't follow. I mean should we add to documentation such matrices. Oleg On Thu, Apr 3, 2014 at 11:32 AM, Oleg Bartunov wrote: Hi there, I'm wondering if we should follow all js equility rules as nicely visualized in http://strilanc.com/visua

Re: [HACKERS] json(b) equality rules

2014-04-03 Thread Oleg Bartunov
Sure, we don't follow. I mean should we add to documentation such matrices. Oleg On Thu, Apr 3, 2014 at 11:32 AM, Oleg Bartunov wrote: > Hi there, > > I'm wondering if we should follow all js equility rules as > nicely visualized in > http://strilanc.com/visualization/2014/03/27/Better-JS-Equali

[HACKERS] json(b) equality rules

2014-04-03 Thread Oleg Bartunov
Hi there, I'm wondering if we should follow all js equility rules as nicely visualized in http://strilanc.com/visualization/2014/03/27/Better-JS-Equality-Table.html Oleg -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postg