Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5fXE-00017c-Su for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Aug 2013 17:22:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V5fXE-0006aH-2v for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Aug 2013 17:22:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5ezD-0005cK-Kw for pgsql-bugs@postgresql.org; Sat, 03 Aug 2013 16:47:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5ez6-0004XJ-Rc for pgsql-bugs@postgresql.org; Sat, 03 Aug 2013 16:47:23 +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 r73GlEp5004680; Sat, 3 Aug 2013 12:47:15 -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: <8645.1375477524@sss.pgh.pa.us> References: <7861.1375475031@sss.pgh.pa.us> <8645.1375477524@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 02 Aug 2013 17:05:24 -0400" Date: Sat, 03 Aug 2013 12:47:14 -0400 Message-ID: <4679.1375548434@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) 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 I wrote: > ... But it seems like maybe we had better cover the > following cases that we do not cover today: > inf > +inf > -inf > +Infinity I've committed a patch that makes sure float4in and float8in accept these spellings even when the underlying strtod(3) function does not. However, it turns out that this doesn't fix your test case on my HPUX box, and I'm betting that it won't help on Windows either, because it's actually Python that's failing. You can reproduce the failure without any Postgres code involved at all: $ python Python 2.5.1 (r251:54863, Jul 12 2007, 23:25:33) [GCC 2.95.3 20010315 (release)] on hp-ux10 Type "help", "copyright", "credits" or "license" for more information. >>> a = float('inf') Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for float(): inf Now, I seriously doubt that the Python guys will give a darn about a 15-year-old version of HPUX, but if you can reproduce the above on your Windows machine, I'd suggest filing a bug about it with them. 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