Markus Bertheau <[EMAIL PROTECTED]> writes: >> + num_tuples = ceil(num_tuples + tuples_removed * 0.5);
> Not understanding a thing about the PG source code, and judging from the > variable names, wouldn't you want ceil(num_tuples + (num_tuples - > tuples_removed) * 0.5) instead? No. num_tuples is post-removal. The full expression is (num_tuples + (num_tuples + tuples_removed)) / 2 which simplifies as above. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]