Re: several cases of float and integer mixup

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: several cases of float and integer mixup
Date: 2026-12-05 21:51:30
Message-ID: a99e459b-8411-43f4-b176-f944a6009f82@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03.12.26 15:49, Heikki Linnakangas wrote:
> avgIndexTuplesPerPage can become exactly 1 anyway, if the tuples have
> just the right sizes. It's rare, but can happen. avgIndexTuplesPerPage <
> 1.0 and maxIndexTuplesPerPage < 1.0 can happen too, but they're not very
> sensible because every page must have at least one tuple.
>
> AI devised the attached little SQL script to demonstrate that. It gets
> stuck looping forever in the loop to determine levelStep, on master, and
> with your 0002-gistbuild-Fix-variable-type.patch, too. How about the
> attached (clamp-gistInitBuffering.patch), on top of your patch?

Yeah, that would be a good idea to make that more robust.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-12-05 21:57:20 Re: extremely slow planner when DISTINCT clause holds more columns
Previous Message Manu 2026-12-05 21:51:15 Re: [PATCH] Reduce pg_class scans in GRANT/REVOKE ON ALL TABLES IN SCHEMA