v2-0001-Fix-pointer-type-of-ShmemAllocatorData-index.patch

text/x-patch

Filename: v2-0001-Fix-pointer-type-of-ShmemAllocatorData-index.patch
Type: text/x-patch
Part: 0
Message: Re: Better shared data structure management and resizable shared data structures

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: format-patch
Series: patch v2-0001
Subject: Fix pointer type of ShmemAllocatorData->index
File+
src/backend/storage/ipc/shmem.c 1 1
From f78982315977b7e6a103351a961a5f02f4ca5171 Mon Sep 17 00:00:00 2001
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Thu, 5 Mar 2026 22:09:35 +0200
Subject: [PATCH v2 1/4] Fix pointer type of ShmemAllocatorData->index

Cosmetic.
---
 src/backend/storage/ipc/shmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c
index 9f362ce8641..cfdd92bb2b5 100644
--- a/src/backend/storage/ipc/shmem.c
+++ b/src/backend/storage/ipc/shmem.c
@@ -87,7 +87,7 @@
 typedef struct ShmemAllocatorData
 {
 	Size		free_offset;	/* offset to first free space from ShmemBase */
-	HTAB	   *index;			/* copy of ShmemIndex */
+	HASHHDR	   *index;			/* location of ShmemIndex */
 
 	/* protects shared memory and LWLock allocation */
 	slock_t		shmem_lock;
-- 
2.47.3