pgsql: Define pg_attribute_cold and pg_attribute_hot macros - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Define pg_attribute_cold and pg_attribute_hot macros
Date
Msg-id E1khKLt-00063B-K1@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Define pg_attribute_cold and pg_attribute_hot macros

For compilers supporting __has_attribute and __has_attribute (hot/cold).

__has_attribute is supported on gcc >= 5, clang >= 2.9 and icc >= 17.

A followup commit will implement some usages of these macros.

Author: David Rowley
Reviewed-by: Andres Freund, Peter Eisentraut
Discussion: https://postgr.es/m/CAApHDvrVpasrEzLL2er7p9iwZFZ%3DJj6WisePcFeunwfrV0js_A%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/697e1d02f53f985992a4f479b0b08fca5c272c6c

Modified Files
--------------
src/include/c.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Remove unnecessary #include.
Next
From: David Rowley
Date:
Subject: pgsql: Improve compiler code layout in elog/ereport ERROR calls