Add pg_assume(expr) macro
This macro can be used to avoid compiler warnings, particularly when using -O3
and not using assertions, and to get the compiler to generate better code.
A subsequent commit introduces a first user.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: http://postgr.es/m/3prdb6hkep3duglhsujrn52bkvnlkvhc54fzvph2emrsm4vodl@77yy6j4hkemb
Discussion: http://postgr.es/m/
20230316172818.x6375uvheom3ibt2%40awork3.anarazel.de
Discussion: http://postgr.es/m/
20240207203138.sknifhlppdtgtxnk%40awork3.anarazel.de