On 10/20/2010 01:15 PM, Florian Weimer wrote:
* Terry Laurenzo:
Agreed. BSON was born out of implementations that either lacked
arbitrary precision numbers or had a strong affinity to an
int/floating point way of thinking about numbers. I believe that if
BSON had an arbitrary precision number type, it would be a proper
superset of JSON.
But JSON has only double-precision numbers!?
AFAICT the JSON spec says nothing at all about the precision of numbers.
It just provides a syntax for them. We should not confuse what can be
allowed in JSON with what can be handled by some consumers of JSON such
as ECMAScript.
However, since we would quite reasonably require that any JSON
implementation be able to handle arbitrary precision numbers, that
apparently rules out BSON as a storage engine for it, since BSON can not
handle such things.
cheers
andrew
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers