aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-02-13 21:23:41 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-02-13 21:25:27 +0200
commitd46c269612c78b5688487e07f74f3e875755effe (patch)
tree2360d305ae07304dfb238a5efefa02430028981b
parent29f00523808ac1d646cf51f9fe199e61ce5631e7 (diff)
downloadpostgresql-d46c269612c78b5688487e07f74f3e875755effe.tar.gz
postgresql-d46c269612c78b5688487e07f74f3e875755effe.zip
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.c2
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 340048a0d1e..77a195b4836 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;
/*