]> granicus.if.org Git - postgresql/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:22:52 +0000 (09:22 -0400)
commit1336bd9862c15db20a879f27082d18604fec7093
tree974997af50fb632b0205ca7e0d6c5acf081c5b63
parent9410b711deafeec01672f213ec6b8383c137e759
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