postgresql/contrib/pg_walinspect
Michael Paquier 5c1b662807 Rework design of functions in pg_walinspect
This commit reworks a bit the set-returning functions of pg_walinspect,
making them more flexible regarding their end LSN:
- pg_get_wal_records_info()
- pg_get_wal_stats()
- pg_get_wal_block_info()

The end LSNs given to these functions is now handled so as a value
higher than the current LSN of the cluster (insert LSN for a primary, or
replay LSN for a standby) does not raise an error, giving more
flexibility to monitoring queries.  Instead, the functions return
results up to the current LSN, as found at the beginning of each
function call.

As an effect of that, pg_get_wal_records_info_till_end_of_wal() and
pg_get_wal_stats_till_end_of_wal() are now removed from 1.1, as the
existing, equivalent functions are able to offer the same
possibilities.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACU0_q-o4DSweyaW9NO1KBx-QkN6G_OzYQvpjf3CZVASkg@mail.gmail.com
2023-03-14 20:13:02 +09:00
..
expected Rework design of functions in pg_walinspect 2023-03-14 20:13:02 +09:00
sql Rework design of functions in pg_walinspect 2023-03-14 20:13:02 +09:00
.gitignore Add contrib/pg_walinspect. 2022-04-08 00:26:44 -07:00
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 Rework design of functions in pg_walinspect 2023-03-14 20:13:02 +09: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 Rework design of functions in pg_walinspect 2023-03-14 20:13:02 +09: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