Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5LtE-0003xL-EC for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Aug 2013 20:23:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V5LtD-0000oo-M9 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Aug 2013 20:23:55 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5LtC-0000oh-Mz for pgsql-bugs@postgresql.org; Fri, 02 Aug 2013 20:23:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5LtA-0001tO-1i for pgsql-bugs@postgresql.org; Fri, 02 Aug 2013 20:23:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r72KNpq6007862; Fri, 2 Aug 2013 16:23:51 -0400 From: Tom Lane To: grv87@yandex.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8355: PL/Python 3 can't convert infinity to PostgreSQL's value In-reply-to: References: Comments: In-reply-to grv87@yandex.ru message dated "Fri, 02 Aug 2013 09:52:32 -0000" Date: Fri, 02 Aug 2013 16:23:51 -0400 Message-ID: <7861.1375475031@sss.pgh.pa.us> X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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