postgres.git / summary / log / commit / refs

commit    95cc48ca0dcb71beb1a6d1c7e768f87139e9c195
Author:   Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date:     Tue Feb 13 19:23:41 2024 +0000
First released in: 17.0, 12.19, 13.15, 14.12, 15.7, 16.3

    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


src/backend/storage/ipc/dsm_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index a5dbd662b2f..5f96bcf5b2f 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -868,7 +868,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; /* [parent: 588f370b163d]