pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kohei KaiGai <kaigai@heterodb.com>
Cc: Taiki Kondo <tai-kondo@yk.jp.nec.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Hiroshi Yanagisawa <hir-yanagisawa@ut.jp.nec.com>
Subject: Re: [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows
Date: Wed, 27 Sep 2017 10:39:59 -0400
Message-ID: <24525.1506523199@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOP8fzaLqeNFL99V0r=dxY9vXMxPhxnSV2KdL4-CSL8kz2sB9Q@mail.gmail.com>
References: <12A9442FBAE80D4E8953883E0B84E088C8C7A2@BPXM01GP.gisp.nec.co.jp>
	<CAOP8fzaLqeNFL99V0r=dxY9vXMxPhxnSV2KdL4-CSL8kz2sB9Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Kohei KaiGai <kaigai@heterodb.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <24525.1506523199@sss.pgh.pa.us>
Permalink:  ../24525.1506523199@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24525.1506523199@sss.pgh.pa.us

 · 

reply

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, kaigai@heterodb.com, tai-kondo@yk.jp.nec.com, pgsql-hackers@postgresql.org, hir-yanagisawa@ut.jp.nec.com
  Subject: Re: [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows
  In-Reply-To: <24525.1506523199@sss.pgh.pa.us>
  References: <12A9442FBAE80D4E8953883E0B84E088C8C7A2@BPXM01GP.gisp.nec.co.jp> <CAOP8fzaLqeNFL99V0r=dxY9vXMxPhxnSV2KdL4-CSL8kz2sB9Q@mail.gmail.com> <24525.1506523199@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