pg_visibility: Use visibilitymap_count instead of loop.
Masahiko Sawada <msawada@postgresql.org>
Author:
Masahiko Sawada <msawada@postgresql.org>
Date: 2025-12-23T18:33:06Z
Releases:
19 (unreleased)
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@gmail.com> Reviewed-by: wenhui qiu <qiuwenhuifx@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CAEze2WgPu-EYYuYQimy=AHQHGa7w8EvLVve5DM5eGMR6zh-7sw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_visibility/pg_visibility.c | modified | +5 −26 |
Discussion
- Vectorize pg_visibility.pg_visibility_map_summary 5 messages · 2025-12-22 → 2025-12-23