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 1w0Lrw-001pu0-2l for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 15:53:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0Lrv-009scF-13 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 15:53:07 +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 1w0Lqh-009pWb-26 for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 15:51:52 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w0Lqf-000000029qJ-309e for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 15:51:51 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4853e1ce427so39196925e9.3 for ; Wed, 11 Mar 2026 08:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773244308; x=1773849108; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Tz/OrGrzCCmZIzJZSxpJPrv78VEoR9/zzU3qU398uhA=; b=JzGUdcXARpY3s4yBQ1xbkPOmjSXG9lgKhkWPQbkedP16jr+BsUZwR+ZPiAVQn93JPp seuh8R/P+Gc2KNXw4e6X/FwjHNv3JSvouFtIUaKOJSu4X4Ml/Sr0O8295b2lABVIwDg/ 08wJCCD4cygbksMQtgXmrZQm8PINjmH5sNhcwMa0uthXG4qpJRDpWtUM0YAHf4fMmtPt yNxnQGaOofUeGpMDlSBpYG3yNx+Y7nUnSPnQd6I8ns7E89+j81bU3N2TZQ6LVgRlnRBf e85uxiEhaKHqW4ma0JSahCaFiU37jpLihPjuqeiLobIkn6kOakKfLLue3W5DrBMwbrvQ MrBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773244308; x=1773849108; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tz/OrGrzCCmZIzJZSxpJPrv78VEoR9/zzU3qU398uhA=; b=xTrtjZ/zNKGHKMJkg5BE04UqxFyLGsOV0TILYYfCUw9rXbWGFC/Wc4cw3MGNpzMF9z c3E9s5Hqt+W3qsvE4YX5Ublxgjtu1NEVr5vL0DfcyxAKI2p1goARYkwcplOsRu3ojGJt iU/VIQoz1vq6WxGTxTeP72cCGJtdHIbnwNZzngc8w9RCDruwqjQ13BJprqoGMg0HSZD4 y8tEwxtBG6HQbgZmnp2Kf3FopfczKESCu+A6SeQSeSb/A7igSBs4trPpNv2NA95/PPrr 8OFl0RifMoI6fbcZrUukBtrQ34OiCTinZONCk1Z5wyXL0wfM9+sGrHHrCtqpVEAQyz58 xdIw== X-Forwarded-Encrypted: i=1; AJvYcCXVMSRbWPndqEn2DZmulBwWYtsEwhOWuLyoshp0v10tMzurPV3/ITUjNvokxY5aZAQSzcQ7o5pOyw97XLxO@lists.postgresql.org X-Gm-Message-State: AOJu0YxVvgqJOZD1ZXK60Jv5SNLFmmthKvymBTXrYgv5IloEhq4+hozi EPjW7PaTVpEiDhyFmpCJ/lJtmy3wKgCv+P5OEFQZ+6w7hPGFYjboNqw8ry07mA== X-Gm-Gg: ATEYQzzkSJ55B/O9Cx/2kRK4Eg3yZCzZMtF5Uq4dyu16ndqQAOkd/ZRbVZ4t73NMvg0 a8qSPXdb8h4uiK2zqwX2IHcNpeGcWg/c4SfsVedojST1UZ3TuHJ3I1UYv6hV+LxHNw682tGTU00 rWceuGCOJMn6QCDbRfnduWTOGsTLoh91zttBlq4tHyV1jwkyimkr6pWFUMQdi5IxwKK5g7DJPPr sI8sYjsiLI09sMR5ByMUC8lYyQT7ScTjWyggZxRizUUMuiGGteQyVHdO71rBwWE7Riuzp8R3ahF KWkeJczsNQ0c85wbJdeVx5W5gDryL6MgKS0Sa7x/e2+v2yRc9/Y4reWNwNCTfSVTIo7c9zyYmbc SHbmnJ8ZXFyYTjwMYSDd02Kfx15zwEGs1r30N6IPQpfnOrZyAa5t8isXi++0qA+VwdFC6tPYAwz 7kFD1z4Agq8oOTWTkgx3z9HnqwvsZ3yhjVOYQmTIjte4XyYsS0RCc/sOQCMIFSNh54BQgM+P70c JtvHCW7qA01pqpJjsqKfY5rE9tBrZRjCLYlYZIEkZIqYvdy8/3XpTor4A== X-Received: by 2002:a05:600d:6444:10b0:485:3423:727d with SMTP id 5b1f17b1804b1-4854b1b1918mr39750975e9.26.1773244308141; Wed, 11 Mar 2026 08:51:48 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541aa73dasm441762895e9.2.2026.03.11.08.51.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2026 08:51:47 -0700 (PDT) Date: Wed, 11 Mar 2026 15:51:46 +0000 From: Bertrand Drouvot To: Tom Lane Cc: Peter Eisentraut , Andres Freund , pgsql-hackers@lists.postgresql.org Subject: Re: Defend against -ffast-math in meson builds Message-ID: References: <3316.1773242385@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3316.1773242385@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, Mar 11, 2026 at 11:19:45AM -0400, Tom Lane wrote: > Peter Eisentraut writes: > > The existing check in configure is because certain Linux distributions > > used to compile everything with -ffast-math to be "faster", and that > > kept breaking PostgreSQL and so we wanted to stop them very early. > > These are gone, and the defenses in the code like date.c should be > > sufficient for any new attempts. I think we could remove the check in > > configure. > > The defenses in those modules are probably obsolete too: aren't they about > ensuring exact results with floating-point timestamps? My gut reaction to > this was maybe we could remove *all* of that, so now I'm curious what > problem Bertrand ran into. I got some regression tests failing: [1]. [1]: https://postgr.es/m/abGO%2BBl1FQlpvFAt%40ip-10-97-1-34.eu-west-3.compute.internal Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com