On 03.12.26 13:35, Kirill Reshke wrote:
For GIN num tuple counter - remainig GinBuildState.bs_numtuples /
GinBuildShared.indtuples are still double. I think this change makes
these two places inconsistent so maybe leave as-is?

Depends on where we draw the line of consistency, I suppose. There are many places in the code that deal with tuple counts in type double for statistics purposes, which seems fine, because those are estimates or feed into estimates. That's what bs_numtuples etc. do. But in the case I'm proposing to change, the tuple count is for reporting progress information, which deals in integers, because it is reporting actual values. So I think for consistency we should keep those two worlds separate by using the correct types within them.


Reply via email to