| From: | Kirill Reshke <reshkekirill(at)gmail(dot)com> |
|---|---|
| To: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: several cases of float and integer mixup |
| Date: | 2026-12-04 09:11:44 |
| Message-ID: | CALdSSPhCO_bv2g6UnakKaWAhZA8v0qJmGjYB0Hqz7pNv93n-_w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, 4 Dec 2026 at 13:40, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>
> 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.
OK LGTM GIN/GiST then
--
Best regards,
Kirill Reshke
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-12-04 09:12:45 | Re: add --transfer-mode to pg_upgrade |
| Previous Message | Hayato Kuroda (Fujitsu) | 2026-12-04 09:10:09 | RE: Wrong relation in apply worker "not updatable" errors PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>for partitions; relcache leak in check_and_init_gencol() |