Re: BUG #1718: geqo_selection.c:linear() - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1718: geqo_selection.c:linear()
Date
Msg-id 28342.1118759004@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1718: geqo_selection.c:linear()  ("Bug Finder" <bug@zedware.org>)
List pgsql-bugs
"Bug Finder" <bug@zedware.org> writes:
> In geqo_selection.c, function linear() may
> return a value equals to pool_size, and cause
> geqo_selection() to visit invalid array member.

Good catch.  I wonder whether roundoff error couldn't lead to trying to
call sqrt() with a value slightly less than zero, too.  Repaired in our
CVS for next releases --- thanks for the report!

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: BUG #1712: JDBC column precision for bigint is 0
Next
From: Brandon Keepers
Date:
Subject: pg_dump silently fails