Re: [patch] PL/Python is too lossy with floats

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Marko Kreen <markokr(at)gmail(dot)com>, Postgres Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [patch] PL/Python is too lossy with floats
Date: 2015-06-10 02:28:35
Message-ID: 28006.1433903315@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On 6/1/15 5:34 AM, Marko Kreen wrote:
>> Please reconsider backporting.

> It's been like this forever, so I don't think it's appropriate to
> backpatch this.

http://www.postgresql.org/docs/devel/static/plpython-data.html
states in so many words that floats are converted with str().
Presumably this needs an update in HEAD, but I would say that
the current behavior is per specification in all back branches.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2015-06-10 02:32:14 Re: Aggregate Supporting Functions
Previous Message Bruce Momjian 2015-06-10 02:12:57 Re: Run pgindent now?