Re: Jsonb transform for pl/python - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Jsonb transform for pl/python
Date
Msg-id 786ad675-29c5-5acb-9d87-c3609689bf7d@2ndquadrant.com
Whole thread Raw
In response to Re: Jsonb transform for pl/python  (Nikita Glukhov <n.gluhov@postgrespro.ru>)
Responses Re: Jsonb transform for pl/python
List pgsql-hackers
On 6/23/18 01:44, Nikita Glukhov wrote:
> We are simply trying first to convert numeric to int64 if is does not have
> digits after the decimal point, and then construct Python Int instead of
> Decimal.  Standard Python json.loads() does the same for exact integers.

We just had a very similar but not identical discussion in the thread
about the PL/Perl transforms, where we rejected the proposal.  Other
comments on this one?

In any case, this might well be a consideration for PG12, not a bug in
the existing implementation.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: SCRAM with channel binding downgrade attack
Next
From: Gilles Darold
Date:
Subject: Re: [HACKERS] proposal: schema variables