pgsql: Add macro to cast away volatile without allowing changes to unde

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add macro to cast away volatile without allowing changes to unde
Date: 2019-03-25 08:46:34
Message-ID: E1h8LFa-0001Kn-Cz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add macro to cast away volatile without allowing changes to underlying type

This adds unvolatize(), which works just like unconstify() but for volatile.

Discussion: https://www.postgresql.org/message-id/flat/7a5cbea7-b8df-e910-0f10-04014bcad701%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/481018f2804065cb5ed1cde75b7c0596aeef959a

Modified Files
--------------
src/backend/postmaster/pgstat.c | 2 +-
src/backend/storage/ipc/pmsignal.c | 2 +-
src/include/c.h | 8 +++++++-
3 files changed, 9 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-03-25 09:05:42 pgsql: Align timestamps in pg_regress output
Previous Message Andres Freund 2019-03-25 07:20:55 pgsql: tableam: Add and use table_fetch_row_version().