pgsql: Make visibilitymap_set() return previous state of vmbits - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Make visibilitymap_set() return previous state of vmbits
Date
Msg-id E1tNd8A-0004w8-3t@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make visibilitymap_set() return previous state of vmbits

It can be useful to know the state of a relation page's VM bits before
visibilitymap_set(). visibilitymap_set() has the old value on hand, so
returning it is simple. This commit does not use visibilitymap_set()'s
new return value.

Author: Melanie Plageman
Reviewed-by: Masahiko Sawada, Andres Freund, Nitin Jadhav, Bilal Yavuz
Discussion:
https://postgr.es/m/flat/CAAKRu_ZQe26xdvAqo4weHLR%3DivQ8J4xrSfDDD8uXnh-O-6P6Lg%40mail.gmail.com#6d8d2b4219394f774889509bf3bdc13d,
https://postgr.es/m/ctdjzroezaxmiyah3gwbwm67defsrwj2b5fpfs4ku6msfpxeia%40mwjyqlhwr2wu

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4b565a198b524469df9f3286a6f12778acd9d564

Modified Files
--------------
src/backend/access/heap/visibilitymap.c | 9 +++++++--
src/include/access/visibilitymap.h      | 9 ++++++---
2 files changed, 13 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Set max_safe_fds whenever we create shared memory and semaphores
Next
From: Tom Lane
Date:
Subject: pgsql: Skip useless calculation of join RTE column names during EXPLAIN