jian he <[email protected]> writes: > if (nrows > MAXIMUM_ROWCOUNT || isnan(nrows)) > nrows = MAXIMUM_ROWCOUNT; > else if (nrows <= 1.0) > nrows = 1.0; > else > nrows = rint(nrows);
> The comments say `Avoid infinite and NaN`
> but actually we only avoid NaN.
Really? The IEEE float arithmetic standard says that Inf is
greater than any finite value, and in particular it'd be
greater than MAXIMUM_ROWCOUNT.
regards, tom lane
