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.96) (envelope-from ) id 1weEFg-004eip-0i for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jun 2026 15:50:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1weEFf-0046Pq-0B for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jun 2026 15:50:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1weEFe-0046Ph-2X for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 15:50:26 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1weEFc-00000000oBZ-3Vif for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 15:50:26 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-693c69b97e7so6714621a12.2 for ; Mon, 29 Jun 2026 08:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782748224; cv=none; d=google.com; s=arc-20260327; b=j1QIaF2hF6mGmJUIjhfgEI3RaeCAw7MSMcZSIt5Bb7BCPSuoWfJ/CAaCmj8+ihcl1z ESFtwB694vBDZe6gFrlHANoy0tyFLE4wEgrsNBdRO3MyVf/jSzZdseHculc2Uaf2r8R6 WggkObviE0yz5y6PxE622C+7F2bBVAXV6NtQ+JUWuf4BNn5FZS4ZaYaVeSNUiDUUG8pf 0tPnkxt0nLlQc2p9K9NsDo8rNtflDEXQ4GRUfmbLtLacuBzd0yI7xQnJKoNuS4eaoDXD R17BeBKzC3MtjpBlIyfLD19s7YLEzUtsyGTp2V3zdKawBqb95Du82PyKmBQ2gObpvhFv 02XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=KkYd8mcXbfgG16jbk7CMBL8VMMLqiY1SbnUSLOp6gJE=; fh=R0fSylxfiO74oXP57k6lUr4XZ87tOC3Aflnyq6AH1TI=; b=TZK16bU30ZOx3Q+IgY6/6KOeUMklVeIwTz3Er0TCsXlboZXIuuRufrzoctCoxLKyIu xJBlAy6E2mBEdiRSfjLKEWcYvlIlcpmuH73NclA9I4mg3hfNCuH+xvbLjXFre6yVAAl5 6+A78WdewD1/tregcBcxSMQygu5zKBMo50vJI6JMaL17QBZqgYDyeAWfhFsBl+4ncWl8 o0ByilIvQCLLpONgGEJ1OThnjT+vN0bvidHyOvHEDHQxs/CcoDoz6Ums3pDfKJd2g+nC vunW9zoeFw7w8u03ttRXZvjo/3yHdLGG5rRS4Y2Z3wAZWX5xl6YwhnQQDs/gMG1ovR2o kXPg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782748224; x=1783353024; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KkYd8mcXbfgG16jbk7CMBL8VMMLqiY1SbnUSLOp6gJE=; b=g3NYfEdXsMsGZr9kAZ5W6tVp5yZtWJLIUc6dBcnWB+n0ymiFP3ixMDxEbTGpu/1gmE WwyEdDC0QkniUDDXP4/chf8aVz28jhOiIStMtppRfDUU4Mah6Gb3HOr+kavggY/vkQbr StFNwB2xVMdzsA7mhDQ+K/qJUdshmlQqshUH56Tk6airzqsQYV1mjAWSFjy6TI8Jc2YC +i+Z7KLgsXgl4i/bLePH6Tc342cUtpuJ4bfHF4NFUab1R1NmstfWIA0CdCT0v3dkD1pc 4b6ytVYHm27Z6a3T+Tj3eRUvin3a+qrsTjcUsIyANkuq2gmZsVb3iQNaK6wyuReRzKbj ADFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782748224; x=1783353024; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KkYd8mcXbfgG16jbk7CMBL8VMMLqiY1SbnUSLOp6gJE=; b=jvi2u4CrRE+zfCqUP6L9kRvMpnABWTueJiEi51sXEKcp1aHAjoIhSV8shl+6IEouoh AETX8eb3ycX1BXlAuJQLDhEG36L38GYFUe2M/4hz9YXAXwNuKeO77cRC3sZOc9BtsZKn i14ABBz1epZrZ0lyrnIaPGBb1e5xxXLi27cKnuWZRXhMSf75t4UEptN0uUd2cfHUffy6 ptjE7AUywVGWZtxYMuweFbJm+fKUo2ntgXXSQXUXg06mwNFTJFoa0iF7dxDan8b0hSjU GY497I52pKTfHil00RccTJxOp75Et6s4hByGs79oucF1qQRilM+o4LHEDtVtkBkySdnw 9bng== X-Forwarded-Encrypted: i=1; AHgh+Rp4KimdA+rvqqlOD+9DPc3FLH5Z6HBWHoN7Y+5trJUysW8veyYCJ4Ph/F7BqqvxqR9ZCjVVkcwuLdnZ@lists.postgresql.org X-Gm-Message-State: AOJu0Yx6+TR9SaRhlAm0gk10JjwDKC26w0tgDyF8xCrJqfreCNUImhPJ mrJHdSe9eeYz9f/4Y1Frps/Xczv1p1LrYt3oo8xqXJmB84bMJsAcwZEwO3K90eg3hJWQcCwg4Km jk9Wo4rdlIL5xzGjSAbXxVvTMJNjzH1E= X-Gm-Gg: AfdE7clSGGknxcOZV/NY1e303SrPIp8c1v7SVvl7z7v8BIGku9A3hwt6n50iEoYhLo6 V07E3Z+w1RPwLD7NxNVvIm7tdbta8USVPuPYv0D06qV62t3Xc+3pIN3ms3MISWvGgQx5jLmCeNV 1hzIV/k/nyF30/t8cGR+5dzSwrMwRtuBjd3vyFPrEG18tNoKrn1O05l0xeCDveDm09IWc4kM9yR MnRmXWKF4BjHlDBc41xHdh8aTYrcpb2sbUvOHlAtIfVFOGaJN3n010u/hQy1WFmwAJ8QpW+oaiI FlLhQmfRSjLaQWNkDgaLa7vEo1dE9g== X-Received: by 2002:a05:6402:428d:b0:698:3b7c:3b3a with SMTP id 4fb4d7f45d1cf-6983b7c3e6emr4882946a12.38.1782748223714; Mon, 29 Jun 2026 08:50:23 -0700 (PDT) MIME-Version: 1.0 References: <1703741.1782745481@sss.pgh.pa.us> <1717564.1782747310@sss.pgh.pa.us> In-Reply-To: <1717564.1782747310@sss.pgh.pa.us> From: Bill Kim Date: Tue, 30 Jun 2026 00:50:11 +0900 X-Gm-Features: AVVi8CdYdZQ4YJilWT6j4NkCV0ZKa-faUzpNGrbx9o7cfqfZoFAulEW8uknUOj0 Message-ID: Subject: Re: BUG #19524: NaN handling in btree_gist's float4/float8 opclasses To: Tom Lane Cc: Daniel Gustafsson , pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000099388e0655666a2d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000099388e0655666a2d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Symptoms are silent wrong answers + EXCLUDE bypass leans me toward back-patching despite the reindex cost. Happy with whatever call you make. 2026=EB=85=84 6=EC=9B=94 30=EC=9D=BC (=ED=99=94) =EC=98=A4=EC=A0=84 12:35, = Tom Lane =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > Bill Kim writes: > > missed the file and please refer to attached. > > OK, thanks. I didn't go over this in detail yet, but at first > glance it looks reasonable. > > What I am wondering right now is whether it's better to back-patch > this or leave well enough alone. Given that we've now had two > independent complaints, maybe there are enough people using btree_gist > with NaNs to justify a back-patch, even though it'd force them to > reindex. > > In any case, sneaking it into v19 seems reasonable. > > regards, tom lane > --00000000000099388e0655666a2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Symptoms are silent wrong answers + EXCLUDE bypass leans m= e toward=C2=A0back-patching despite the reindex cost.
Happy with whatev= er call you make.

2026=EB=85=84 6=EC=9B=94 30=EC=9D=BC= (=ED=99=94) =EC=98=A4=EC=A0=84 12:35, Tom Lane <tgl@sss.pgh.pa.us>=EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84= =B1:
Bill Kim &l= t;billkimjh@gmail.= com> writes:
> missed the file and please refer to attached.

OK, thanks.=C2=A0 I didn't go over this in detail yet, but at first
glance it looks reasonable.

What I am wondering right now is whether it's better to back-patch
this or leave well enough alone.=C2=A0 Given that we've now had two
independent complaints, maybe there are enough people using btree_gist
with NaNs to justify a back-patch, even though it'd force them to
reindex.

In any case, sneaking it into v19 seems reasonable.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane
--00000000000099388e0655666a2d--