]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_buffercache: Allow huge allocations.
authorRobert Haas <rhaas@postgresql.org>
Thu, 15 Sep 2016 13:22:52 +0000 (09:22 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 15 Sep 2016 13:30:36 +0000 (09:30 -0400)
commit60b6d99dac05b888b7f121720cafea88ba0c9307
tree6200b4b42cd847014f759ede223323602daa24ed
parente2838c58047a98e91cb6f329b17bb86f343c03d2
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
contrib/pg_buffercache/pg_buffercache_pages.c