postgresql/contrib/pg_walinspect
Peter Geoghegan df4f3ab517 Add show_data option to pg_get_wal_block_info.
Allow users to opt out of returning FPI data and block data from
pg_get_wal_block_info as an optimization.  Testing has shown that this
can make function execution over twice as fast in some cases.

When pg_get_wal_block_info is called with "show_data := false", it
always returns NULL values for its block_data and block_fpi_data bytea
output parameters.  Nothing else changes.  In particular, the function
will still return the usual per-block summary of block data/FPI space
overhead.  Use of "show_data := false" is therefore feasible with all
queries that don't specifically require these raw binary strings.

Follow-up to recent work in commit 122376f0.  There still hasn't been a
stable release with the pg_get_wal_block_info function, so no bump in
the pg_walinspect extension version.

Per suggestion from Melanie Plageman.

Author: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAAKRu_bJvbcYBRj2cN6G2xV7B7-Ja+pjTO1nEnEhRR8OXYiABA@mail.gmail.com
Discussion: https://postgr.es/m/CAH2-Wzm9shOkEDM10_+qOZkRSQhKVxwBFiehH6EHWQQRd_rDPw@mail.gmail.com
2023-03-31 14:02:52 -07:00
..
expected Add show_data option to pg_get_wal_block_info. 2023-03-31 14:02:52 -07:00
sql Add show_data option to pg_get_wal_block_info. 2023-03-31 14:02:52 -07:00
.gitignore
Makefile Refactor and improve tests of pg_walinspect 2023-03-13 13:03:29 +09:00
meson.build Refactor and improve tests of pg_walinspect 2023-03-13 13:03:29 +09:00
pg_walinspect--1.0--1.1.sql Add show_data option to pg_get_wal_block_info. 2023-03-31 14:02:52 -07:00
pg_walinspect--1.0.sql Use float8 datatype for percentiles in pg_walinspect stat functions 2022-09-12 10:01:00 +02:00
pg_walinspect.c Add show_data option to pg_get_wal_block_info. 2023-03-31 14:02:52 -07:00
pg_walinspect.control pg_walinspect: Add pg_get_wal_fpi_info() 2023-01-23 13:55:18 +09:00
walinspect.conf Fix buildfarm failures in pg_walinspect tests. 2022-04-08 03:21:12 -07:00