postgresql/src/backend
Fujii Masao ab4129091c Fix limit block handling in pg_wal_summary_contents().
Previously, pg_wal_summary_contents() had two issues,
causing discrepancies between pg_wal_summary_contents()
and the pg_walsummary command on the same WAL summary file:

(1) It did not emit the limit block when that's the only data for
     a particular relation fork.
(2) It emitted the same limit block multiple times if the list of
     block numbers was long enough.

This commit fixes these issues.

Backpatch to v17 where pg_wal_summary_contents() was added.

Author: Fujii Masao
Reviewed-by: Robert Haas
Discussion: https://postgr.es/m/90980ee6-2da6-42f6-a7b0-b7bae62ae279@oss.nttdata.com
2024-07-09 09:29:11 +09:00
..
access Prevent summarizer hang when summarize_wal turned off and back on. 2024-06-28 08:29:05 -04:00
archive Fix memory leaks in error reporting with LOG level 2024-05-14 10:41:32 +02:00
backup Fix limit block handling in pg_wal_summary_contents(). 2024-07-09 09:29:11 +09:00
bootstrap Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
catalog Cope with inplace update making catcache stale during TOAST fetch. 2024-06-27 19:21:06 -07:00
commands Preserve CurrentMemoryContext across notify and sinval interrupts. 2024-07-01 12:21:07 -04:00
executor Fix right-anti-joins when the inner relation is proven unique 2024-07-08 10:17:12 +09:00
foreign Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
jit SQL/JSON: Always coerce JsonExpr result at runtime 2024-06-28 21:58:13 +09:00
lib Revert: Implement pg_wal_replay_wait() stored procedure 2024-04-11 17:28:15 +03:00
libpq A few follow-up fixes for GUC name quoting 2024-05-17 13:48:31 +02:00
main Tighten check for --forkchild argument when spawning child process 2024-07-03 16:20:56 +03:00
nodes Adapt REL_17_STABLE to its new status as a stable branch 2024-07-01 08:05:35 +09:00
optimizer Fix possible Assert failure in cost_memoize_rescan 2024-06-19 10:20:24 +12:00
parser SQL/JSON: Fix some obsolete comments. 2024-07-04 16:17:21 +09:00
partitioning Fix creation of partition descriptor during concurrent detach 2024-06-11 11:38:45 +02:00
po Translation updates 2024-06-24 13:11:27 +02:00
port Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
postmaster Avoid 0-length memcpy to NULL with EXEC_BACKEND 2024-07-03 16:20:56 +03:00
regex Support C.UTF-8 locale in the new builtin collation provider. 2024-03-19 15:24:41 -07:00
replication Rename standby_slot_names to synchronized_standby_slots. 2024-07-01 11:33:55 +05:30
rewrite Fix assorted bugs related to identity column in partitioned tables 2024-05-07 22:50:00 +02:00
snowball Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
statistics Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
storage Fix typo in GetRunningTransactionData() 2024-07-04 02:08:01 +03:00
tcop Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
tsearch Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
utils Fix scale clamping in numeric round() and trunc(). 2024-07-08 17:51:23 +01:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Fix make build on MinGW 2024-06-21 08:17:23 +02:00
meson.build meson: Fix import library name in Windows 2024-06-20 09:08:36 +02:00
nls.mk Add missing gettext triggers 2024-05-14 12:57:22 +02:00