summaryrefslogtreecommitdiffstats
path: root/src/backend/utils/mmgr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 05:05:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 05:05:20 +0000
commita14b88819a8a22da4f5abb19a3b1b61aebb10a7c (patch)
tree45f36cde15c9ff8c45d9efbaa7b02426ca984121 /src/backend/utils/mmgr
parentAdding debian version 15.6-0+deb12u1. (diff)
downloadpostgresql-15-a14b88819a8a22da4f5abb19a3b1b61aebb10a7c.tar.xz
postgresql-15-a14b88819a8a22da4f5abb19a3b1b61aebb10a7c.zip
Merging upstream version 15.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/backend/utils/mmgr')
-rw-r--r--src/backend/utils/mmgr/dsa.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/utils/mmgr/dsa.c b/src/backend/utils/mmgr/dsa.c
index 7d0686b..c3c69bd 100644
--- a/src/backend/utils/mmgr/dsa.c
+++ b/src/backend/utils/mmgr/dsa.c
@@ -1093,9 +1093,13 @@ dsa_dump(dsa_area *area)
{
dsa_segment_index segment_index;
- fprintf(stderr,
- " segment bin %zu (at least %d contiguous pages free):\n",
- i, 1 << (i - 1));
+ if (i == 0)
+ fprintf(stderr,
+ " segment bin %zu (no contiguous free pages):\n", i);
+ else
+ fprintf(stderr,
+ " segment bin %zu (at least %d contiguous pages free):\n",
+ i, 1 << (i - 1));
segment_index = area->control->segment_bins[i];
while (segment_index != DSA_SEGMENT_INDEX_NONE)
{