pgsql: pg_buffercache: Allow huge allocations.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_buffercache: Allow huge allocations.
Date: 2016-09-15 13:34:39
Message-ID: E1bkWoJ-000279-Rz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1336bd9862c15db20a879f27082d18604fec7093

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-09-15 15:23:41 pgsql: Make min_parallel_relation_size's default value platform-indepen
Previous Message Heikki Linnakangas 2016-09-15 11:55:11 pgsql: Support OpenSSL 1.1.0.