| From: | Masahiko Sawada <msawada(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: pg_visibility: Use visibilitymap_count instead of loop. |
| Date: | 2025-12-23 18:34:01 |
| Message-ID: | E1vY7Cq-002HzI-0G@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
pg_visibility: Use visibilitymap_count instead of loop.
This commit updates pg_visibility_map_summary() to use the
visibilitymap_count() API, replacing its own counting mechanism. This
simplifies the function and improves performance by leveraging the
vectorized implementation introduced in commit 41c51f0c68.
Author: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Reviewed-by: wenhui qiu <qiuwenhuifx(at)gmail(dot)com>
Reviewed-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAEze2WgPu-EYYuYQimy=AHQHGa7w8EvLVve5DM5eGMR6zh-7sw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/55c46bbf3a09a20d09d423c5dd4fded64d179d3e
Modified Files
--------------
contrib/pg_visibility/pg_visibility.c | 31 +++++--------------------------
1 file changed, 5 insertions(+), 26 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2025-12-24 01:36:14 | pgsql: C comment: fix psql "pstdout" duplicate to "pstdin" |
| Previous Message | Masahiko Sawada | 2025-12-23 18:13:33 | pgsql: Toggle logical decoding dynamically based on logical slot presen |