Re: [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kohei KaiGai <kaigai(at)heterodb(dot)com>
Cc: Taiki Kondo <tai-kondo(at)yk(dot)jp(dot)nec(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Hiroshi Yanagisawa <hir-yanagisawa(at)ut(dot)jp(dot)nec(dot)com>
Subject: Re: [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows
Date: 2017-09-27 14:39:59
Message-ID: 24525.1506523199@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Kohei KaiGai <kaigai(at)heterodb(dot)com> writes:
> Does it make sense to put a check of "isinf(val)" and ereport prior to
> the snprintf()?

Yeah, that was my reaction too. Obviously this wasn't thought about
in the original coding ...

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-09-27 18:52:54 Re: [HACKERS] BUG #14825: enum type: unsafe use?
Previous Message Kohei KaiGai 2017-09-27 11:06:55 Re: Float value 'Infinity' is cast to numeric 1 on Windows

Browse pgsql-hackers by date

  From Date Subject
Next Message Bossart, Nathan 2017-09-27 14:43:30 Re: Enhancements to passwordcheck
Previous Message Euler Taveira 2017-09-27 14:28:49 Re: Logical Replication - test_decoding - unchanged-toast-datum