pg_buffercache: Allow huge allocations.

Robert Haas <rhaas@postgresql.org>

Commit: 60b6d99dac05b888b7f121720cafea88ba0c9307
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-09-15T13:30:36Z
Releases: 9.5.5
pg_buffercache: Allow huge allocations.

Otherwise, users who have configured shared_buffers >= 256GB won't
be able to use this module.  There probably aren't many of those, but
it doesn't hurt anything to fix it so that it works.

Backpatch to 9.4, where MemoryContextAllocHuge was introduced.  The
same problem exists in older branches, but there's no easy way to
fix it there.

KaiGai Kohei

Files

PathChange+/−
contrib/pg_buffercache/pg_buffercache_pages.c modified +3 −1