Re: Windows env returns error while running "select pgstatindex"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rushabh Lathia <rushabh(dot)lathia(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Windows env returns error while running "select pgstatindex"
Date: 2011-08-24 14:27:35
Message-ID: 5456.1314196055@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rushabh Lathia <rushabh(dot)lathia(at)gmail(dot)com> writes:
> After debugging I noticed that "0/0" returning NaN on linux but it returns
> "-1.#JIND0000" on windows.

[ rolls eyes ]

> I added to check into pgstatindex() to avoid "0/0" situation and issue got
> fixed.

Hmm. I agree we need to avoid executing 0/0 here, but should we force
the result to 0, or to NaN?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2011-08-24 15:15:43 Re: Windows env returns error while running "select pgstatindex"
Previous Message Alexander Korotkov 2011-08-24 13:57:28 Re: WIP: Fast GiST index build