News for hackers. Stuff that matters.
Re:FerretDB, a truly open-source MongoDB alternative by packetlost on Wednesday April 12, 2023 @02:49PM (#35544806)
The only problem I have with PostgreSQL's JSONB type is it strictly implements the JSON standard, so things like nulls and integers aren't supported. Depending on your data, this could be a real problem.
Re:FerretDB, a truly open-source MongoDB alternative by aleksi on Wednesday April 12, 2023 @02:59PM (#35544943)
FWIW, JSONB supports JSON nulls, and all numbers are encoded as `numeric` type, storing integers and float64 values precisely (well, as much as possible for float64 values).

But you comment is correct for other data types like date-times and binary strings where some form of encoding/decoding is needed.

Re:FerretDB, a truly open-source MongoDB alternative by packetlost on Thursday April 13, 2023 @09:20AM (#35555006)
Yeah, I was misremembering. Our issues were related to NaNs, which we ended up encoding as nulls. I don't think we've had issues with dates yet.
Re:FerretDB, a truly open-source MongoDB alternative by udp on Wednesday April 12, 2023 @03:01PM (#35544969)
The json standard has nulls