From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add declaration-level assertions for compile-time checks
Date: Mon, 03 Feb 2020 05:49:37 +0000
Message-ID: <E1iyUc5-0004wX-8g@gemulon.postgresql.org> (raw)
Add declaration-level assertions for compile-time checks
Those new assertions can be used at file scope, outside of any function
for compilation checks. This commit provides implementations for C and
C++, and fallback implementations.
Author: Peter Smith
Reviewed-by: Andres Freund, Kyotaro Horiguchi, Dagfinn Ilmari Mannsåker,
Michael Paquier
Discussion: https://postgr.es/m/201DD0641B056142AC8C6645EC1B5F62014B8E8030@SYD1217
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f1f10a1ba9e17e606a7b217ccccdd3cc4d8cb771
Modified Files
--------------
src/backend/storage/page/bufpage.c | 9 +--------
src/backend/utils/adt/lockfuncs.c | 6 ++++++
src/backend/utils/misc/guc.c | 39 ++++++++++++++++++++++++++++++++++++++
src/bin/pg_dump/pg_dump_sort.c | 3 +++
src/common/relpath.c | 3 +++
src/include/c.h | 18 ++++++++++++++----
src/include/storage/bufpage.h | 10 ++++++++++
7 files changed, 76 insertions(+), 12 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add declaration-level assertions for compile-time checks
In-Reply-To: <E1iyUc5-0004wX-8g@gemulon.postgresql.org>
References: <E1iyUc5-0004wX-8g@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox