pgsql: pg_buffercache: Allow huge allocations. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: pg_buffercache: Allow huge allocations.
Date
Msg-id E1bkWoJ-000276-Rr@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/bea38f34a4e601d2ea803a3a6d6b90ee0fe2d2b6

Modified Files
--------------
contrib/pg_buffercache/pg_buffercache_pages.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: pg_buffercache: Allow huge allocations.
Next
From: Tom Lane
Date:
Subject: pgsql: Make min_parallel_relation_size's default value platform-indepen