| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Kirill Reshke <reshkekirill(at)gmail(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: several cases of float and integer mixup |
| Date: | 2026-12-04 08:40:03 |
| Message-ID: | 38f3eb3e-eec9-4bb0-b5de-622a90d1e7f5@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-12-04 08:41:11 | Re: several cases of float and integer mixup |
| Previous Message | Chao Li | 2026-12-04 08:38:44 | Fix the OID cutoff in the type_sanity check for unique catalog text indexes |