[PATCH]Remove obsolete macro CHECKFLOATVAL in btree_gist
tanghy.fnst@fujitsu.com <tanghy.fnst@fujitsu.com>
From: "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-08-06T14:14:21Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-obsolete-macro-CHECKFLOATVAL.patch (application/octet-stream) patch 0001
Hi Commit 6bf0bc842 replaced float.c's CHECKFLOATVAL() macro with static inline subroutines, but the fix introduced a performance regression as Tom Lane pointed out and fixed at 607f8ce74. Found obsolete CHECKFLOATVAL usage in contrib/btree_gist, and tried to fix it according to 607f8ce74. The attached patch has been testified in master. All tap tests passed. Regards, Tang
Commits
-
Improve performance of float overflow checks in btree_gist
- 32cf7f7acce3 15.0 landed
-
Provide separate header file for built-in float types
- 6bf0bc842bd7 12.0 cited