Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xRZKO-000000015Md-1inf for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Nov 2026 18:15:16 +0000 Received: from localhost ([127.0.0.1]:41408 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xRZKM-00000004JaM-1uVP for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Nov 2026 18:15:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:46954) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xRZKM-00000004Ja8-0mmt for pgsql-bugs@lists.postgresql.org; Thu, 12 Nov 2026 18:15:14 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xRZKK-00000000cH2-3gcz for pgsql-bugs@lists.postgresql.org; Thu, 12 Nov 2026 18:15:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6ACIFB0v049109; Thu, 12 Nov 2026 13:15:11 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 6ACIFB0v049109 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1794507311; bh=wdhtmxjrPr29jiPyoJ9YK6MKOCmaRJo49SDRuLEddN0=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=bKpveXWzG4MFA9D4HI7h1Q2gcmjPezfvU0ZJ4bZRWraPdiSLMpRFncry8+i4F+oFI XrXquQY1JyfA2hBROMXC4N1iDIh6ZreHmGknIVWztPKFxf+3nwn9L5QJz6FN9bnM6N CTplbqlT0xyVOd0sRJSTRV/QrUwJCNhpgK6FMWmg= From: Tom Lane To: idrissaajalloh@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19887: cube expression index returns wrong rows after extra_float_digits change In-reply-to: <19887-b2be0d8951d8498b@postgresql.org> References: <19887-b2be0d8951d8498b@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 11 Nov 2026 15:07:37 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <49107.1794507311.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Nov 2026 13:15:11 -0500 Message-ID: <49108.1794507311@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > A cube expression index built with extra_float_digits =3D 0 returns no r= ows > after the setting is changed to 3, while sequential evaluation of the sa= me > predicate returns one row. cube_out(cube) is marked IMMUTABLE, but the s= ame > cube value is rendered as (1.23456789012346) with the first setting and > (1.2345678901234567) with the second. Yeah. There's a wider discussion in progress about this class of bugs, over here: https://www.postgresql.org/message-id/flat/19644-d6db3fb5e5ad92f4%40postgr= esql.org regards, tom lane