diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-02-13 21:23:41 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-02-13 21:25:39 +0200 |
commit | 9b8550fbd31e329481c5f73430185a2b672693d6 (patch) | |
tree | 4b6505de109f6a461d1c6300fdaa3290da2a4197 | |
parent | 99cd749ce267fd9c0f6461b282f84f65ed9d8535 (diff) |
Fix 'mmap' DSM implementation with allocations larger than 4 GB
Fixes bug #18341. Backpatch to all supported versions.
Discussion: https://www.postgresql.org/message-id/18341-ce16599e7fd6228c@postgresql.org
-rw-r--r-- | src/backend/storage/ipc/dsm_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index c51e3e683c9..7200f6dfe5c 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -880,7 +880,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size, * transferring data to the kernel. */ char *zbuffer = (char *) palloc0(ZBUFFER_SIZE); - uint32 remaining = request_size; + Size remaining = request_size; bool success = true; /* |