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
pull/157/head
Heikki Linnakangas 1 year ago
parent 0736a8ef6f
commit fbf9a7ac4d
  1. 2
      src/backend/storage/ipc/dsm_impl.c

@ -873,7 +873,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;
/*

Loading…
Cancel
Save