Re: Windows env returns error while running "select pgstatindex" - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Windows env returns error while running "select pgstatindex"
Date
Msg-id 5456.1314196055@sss.pgh.pa.us
Whole thread Raw
In response to Windows env returns error while running "select pgstatindex"  (Rushabh Lathia <rushabh.lathia@gmail.com>)
Responses Re: Windows env returns error while running "select pgstatindex"
List pgsql-hackers
Rushabh Lathia <rushabh.lathia@gmail.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


pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: WIP: Fast GiST index build
Next
From: Euler Taveira de Oliveira
Date:
Subject: Re: Windows env returns error while running "select pgstatindex"