| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Make visibilitymap_set() return previous state of vmbits |
| Date: | 2024-12-17 19:21:18 |
| Message-ID: | E1tNd8A-0004w8-3t@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2024-12-17 20:52:25 | pgsql: Skip useless calculation of join RTE column names during EXPLAIN |
| Previous Message | Tom Lane | 2024-12-17 17:23:35 | pgsql: Set max_safe_fds whenever we create shared memory and semaphores |