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 1w2tFx-000hdL-35 for pgsql-general@arkaria.postgresql.org; Wed, 18 Mar 2026 15:56:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2tFv-00C6kc-2l for pgsql-general@arkaria.postgresql.org; Wed, 18 Mar 2026 15:56:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2tFv-00C6kT-1j for pgsql-general@lists.postgresql.org; Wed, 18 Mar 2026 15:56:23 +0000 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2tFs-00000000Noy-1FtO for pgsql-general@lists.postgresql.org; Wed, 18 Mar 2026 15:56:22 +0000 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-5090c7e9081so62166261cf.0 for ; Wed, 18 Mar 2026 08:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773849381; x=1774454181; darn=lists.postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=W1nIJfFZjuV39c7QA9IXIDHaCCIjhBifgldTB1g/iCY=; b=j//C28++jdT/paZuhlSgXlr9Fkb3WhgkknqHdwpLKDCVbEYFnDwK5LMGBm+iH2h8NC OuuERopkMlaoadwPlprVqiUQYPp7ACOToCP3MFJSykcrg1zVNIgCk1oLAaIgTAe7KhKs s8wENSnaTaLNG4c1oLzWIG9xzJVhgDEK84ArxxdbB9uvvRv2A12pj8wuwDpZEoHbx/sb +MVsbA6G2wBsBb0B3R/NRje06Xkg8rMIe84OscGFfccR2dhAy/c/daNY9c1xkGQb6LFh 9TMt+IJ6xDtZbK+RhFP4NKA2/7I9qemRTH0CNrIzBG3GxGo+G872GkYCau5OBMNLEqQU 4m4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773849381; x=1774454181; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=W1nIJfFZjuV39c7QA9IXIDHaCCIjhBifgldTB1g/iCY=; b=AiZjk9Mz6UDr9ty8dK7Xb5tbWpGjTq3p3aHr8EKz02CsUM04k5VdeU243iCKgOMlpA mX86Vx7hLx0PD5FLPQ36Wozlh9DD+TGxPVxBWpJW4YJTA13+69PfGbht8mDOsH5emWba R+6uNhLLLodyv2H4tjHmNOXp0jP3C1tIp/HSPhLpISpkFgm0YOMlFVhp8uFB5jBUpbgi 7cyWjRqujCPgtsWpnrLzGzJNNMl+yNbqzNf7WWYqUDATjxK+/IrPLeKQXidTFRmBa9z2 sE8VBWL5V16XE96L4pBgLuysR+2CLj6EAXpXBKivhRIvHXshWCc7B7hk1lZQatwrro1E J4XQ== X-Gm-Message-State: AOJu0YxZPO1poUMvUviHyBEgRkof9pytPEPt+wMAocfQPN8CxsZe66mJ 1L6lXVAE6W0WSnTR9c/0zKPx+gjBRTkaJh9xyjWcxx82s6gSngiP7957 X-Gm-Gg: ATEYQzysTAGequ5GIAcfDlb+64MJj8P3rmX23H+9hrn362fBMfnIL8C8mt2gNnfx+fz zwYPT8GSnvZLYoDk8fi3Z2cQJPencvFSbnTV6Bze2wXdX4s9tueDfgGBQ28KFDs1WhSC6T5cA8X j/QYf0vU7l/jre1MQuXnJ5yd82wOYOUZFBwKbVaD9h/t8bz0S6vts3Tib/Ab0WKpCXHkRT7yofM yck8xaWHFSjQJ7eZTOeW5VUHzP66tUlhdnY8COysTKr3cv2xmqSoRFeVT9cwbXlKkRKbl2ECxVL N8vVtkvTfFzE3/TzQSE8enc/OTPIKeidjeHNtJw30QxpQM5u+m2GaO5E8fBHO9xC4tlyX7iZzY0 WwZf5WTwBNOWsgI4SyaPnZCNigM+YMJuz8m/w3xBa7+0ADj2JIL35fSkYODJOwnIE2WvsuxX/Lk NxlaxVs9aaHdLoWHXDC5ayP1E= X-Received: by 2002:ac8:7f88:0:b0:509:1e69:9847 with SMTP id d75a77b69052e-50b14796e86mr49411321cf.28.1773849381045; Wed, 18 Mar 2026 08:56:21 -0700 (PDT) Received: from ?IPV6:2a07:b944::2:2? ([2a02:6ea0:e20d:2691::13]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-50b1348a5d0sm23600401cf.3.2026.03.18.08.56.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Mar 2026 08:56:20 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------HAyd0tcgDdUcgTVqRtY0dHw0" Message-ID: Date: Wed, 18 Mar 2026 11:56:20 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: help debugging an issue with selectivity To: Tom Lane Cc: pgsql-general@lists.postgresql.org References: <8e4f0d76-9e77-4819-96f7-cbc64a9d2b5a@gmail.com> <602084.1773801455@sss.pgh.pa.us> Content-Language: en-US From: Greg Hennessy In-Reply-To: <602084.1773801455@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------HAyd0tcgDdUcgTVqRtY0dHw0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit >> I am not sure if this belongs in pgsql-general or pgsql-hackers, I am >> trying first in psgl-general. > Doesn't matter a lot, but as Rob noted, you should not hijack an > existing thread. Start your own thread, don't reply to an unrelated > message. My apologies. > I don't see any discrepancy in your results, only in your choices of > printf specifiers. "%f" defaults to "%.6f", that is, print only six > digits after the decimal point. So a value down around 1e-12 is > going to print as all zeroes. > > Agreed. I should have noticed that my self. Greg --------------HAyd0tcgDdUcgTVqRtY0dHw0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
I am not sure if this belongs in pgsql-general or pgsql-hackers, I am 
trying first in psgl-general.
Doesn't matter a lot, but as Rob noted, you should not hijack an
existing thread.  Start your own thread, don't reply to an unrelated
message.
My apologies. 
I don't see any discrepancy in your results, only in your choices of
printf specifiers.  "%f" defaults to "%.6f", that is, print only six
digits after the decimal point.  So a value down around 1e-12 is
going to print as all zeroes.


Agreed. I should have noticed that my self.

Greg

--------------HAyd0tcgDdUcgTVqRtY0dHw0--