pgsql: Refactor compile-time assertion checks in c.h

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Refactor compile-time assertion checks in c.h
Дата
Msg-id E1jCdYA-00051Q-HX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Refactor compile-time assertion checks in c.h

This commit refactors and simplifies the definitions of StaticAssertStmt,
StaticAssertExpr and StaticAssertDecl.  By unifying the C and C++
fallback implementations, this reduces the number of different
implementations from four to three.

Author: Michael Paquier
Reviewed-by: Georgios Kokolatos, Tom Lane
Discussion: https://postgr.es/m/20200204081503.GF2287@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b7f64c64d3262c309e2c5e8c11fd111b1dbd1a4a

Modified Files
--------------
src/include/c.h | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Fix nextXid tracking bug on standbys (9.5-11 only).
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Preserve replica identity index across ALTER TABLE rewrite