From: Tom Lane <tgl@sss.pgh.pa.us>
To: grv87@yandex.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8355: PL/Python 3 can't convert infinity to PostgreSQL's value
Date: Fri, 02 Aug 2013 16:23:51 -0400
Message-ID: <7861.1375475031@sss.pgh.pa.us> (raw)
In-Reply-To: <E1V5C2C-0005EG-L3@wrigleys.postgresql.org>
References: <E1V5C2C-0005EG-L3@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
grv87@yandex.ru writes:
> PL/Python can't convert Python's float with infinity value to PostgreSQL's
> float.
> The reason is that Python's standard representation of infinity is 'inf'
> ('Infinity' is accepted as well), but PostgreSQL's representation is
> 'Infinity' only.
Hmm, I was about to contradict you, because it works fine on my Linux
and OS X machines:
regression=# select 'inf'::float8;
float8
----------
Infinity
(1 row)
but further experimentation says that this doesn't work on my ancient
HPUX box; and you're complaining about Windows. So what we've got here
is a platform dependency in the behavior of strtod(). I don't think
we can promise to hide all such dependencies, but maybe it'd be a good
idea to take care of this particular one.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, grv87@yandex.ru
Subject: Re: BUG #8355: PL/Python 3 can't convert infinity to PostgreSQL's value
In-Reply-To: <7861.1375475031@sss.pgh.pa.us>
References: <E1V5C2C-0005EG-L3@wrigleys.postgresql.org> <7861.1375475031@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox