Remove obsolete SAMESIGN macro
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-19T08:40:08Z
Lists: pgsql-hackers
The SAMESIGN macro was historically used as a helper for manual integer overflow checks. However, since commit 4d6ad3125 introduced overflow-aware integer operations, this manual sign-checking logic is no longer necessary. The macro remains defined in brin_minmax_multi.c and timestamp.c, but is not used in either file. Any objections to removing these definitions to clean things up? - Richard
Commits
-
Remove obsolete SAMESIGN macro
- ce1c17a3163f 19 (unreleased) landed
-
Provide overflow safe integer math inline functions.
- 4d6ad31257ad 11.0 cited