pgsql: Define pg_attribute_cold and pg_attribute_hot macros

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Define pg_attribute_cold and pg_attribute_hot macros
Дата
Msg-id E1khKLt-00063B-K1@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove unnecessary #include.
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Improve compiler code layout in elog/ereport ERROR calls