| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Move -ffast-math defense to float.c and remove the configure che |
| Date: | 2026-03-15 23:34:57 |
| Message-ID: | E1w1uz2-000Lio-1h@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Move -ffast-math defense to float.c and remove the configure check.
We had defenses against -ffast-math in timestamp-related files,
which is a pretty obsolete place for them since we've not supported
floating-point timestamps in a long time. Remove those and instead
put one in float.c, which is still broken by using this switch.
Add some commentary to put more color on why it's a bad idea.
Also remove the check from configure. That was just there to fail
faster, but it doesn't really seem necessary anymore, and besides
we have no corresponding check in meson.build.
Author: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Suggested-by: Andres Freund <andres(at)anarazel(dot)de>
Suggested-by: Peter Eisentraut <peter(at)eisentraut(dot)org>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/abFXfKC8zR0Oclon%40ip-10-97-1-34.eu-west-3.compute.internal
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/82ff54377e557914d975d22c4847d98d0efa1dac
Modified Files
--------------
configure | 23 -----------------------
configure.ac | 7 -------
src/backend/utils/adt/date.c | 8 --------
src/backend/utils/adt/float.c | 17 +++++++++++++++++
src/backend/utils/adt/timestamp.c | 7 -------
src/interfaces/ecpg/pgtypeslib/interval.c | 4 ----
src/interfaces/ecpg/pgtypeslib/timestamp.c | 4 ----
7 files changed, 17 insertions(+), 53 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-03-16 00:22:38 | pgsql: Optimize hash index bulk-deletion with streaming read |
| Previous Message | Tom Lane | 2026-03-15 22:55:59 | pgsql: Be more careful about int vs. Oid in ecpglib. |