mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Convert the arithmetic for shared memory size calculation from 'int'
to 'Size' (that is, size_t), and install overflow detection checks in it. This allows us to remove the former arbitrary restrictions on NBuffers etc. It won't make any difference in a 32-bit machine, but in a 64-bit machine you could theoretically have terabytes of shared buffers. (How efficiently we could manage 'em remains to be seen.) Similarly, num_temp_buffers, work_mem, and maintenance_work_mem can be set above 2Gb on a 64-bit machine. Original patch from Koichi Suzuki, additional work by moi.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl $PostgreSQL: pgsql/configure.in,v 1.419 2005/08/17 20:20:10 tgl Exp $
|
||||
dnl $PostgreSQL: pgsql/configure.in,v 1.420 2005/08/20 23:26:06 tgl Exp $
|
||||
dnl
|
||||
dnl Developers, please strive to achieve this order:
|
||||
dnl
|
||||
@ -1132,6 +1132,9 @@ fi
|
||||
# Need a #define for the size of Datum (unsigned long)
|
||||
AC_CHECK_SIZEOF([unsigned long])
|
||||
|
||||
# And one for the size of size_t (enables tweaks for > 32bit address space)
|
||||
AC_CHECK_SIZEOF([size_t])
|
||||
|
||||
# Determine memory alignment requirements for the basic C data types.
|
||||
|
||||
PGAC_CHECK_ALIGNOF(short)
|
||||
|
Reference in New Issue
Block a user