]> granicus.if.org Git - postgresql/commit
Pass DSA_ALLOC_HUGE when allocating a shared TIDBitmap.
authorRobert Haas <rhaas@postgresql.org>
Mon, 27 Mar 2017 12:30:19 +0000 (08:30 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 27 Mar 2017 12:32:57 +0000 (08:32 -0400)
commita171f01501e11a2ef65d437ac2397a0050892d88
treebb7a4d3c71717f3e18f318d738d5b3930f8fc877
parentfacde2a98f0b5f7689b4e30a9e7376e926e733b8
Pass DSA_ALLOC_HUGE when allocating a shared TIDBitmap.

When creating an unshared TIDBitmap, we pass MCXT_ALLOC_HUGE to allow
allocations >1GB, so by analogy we pass DSA_ALLOC_HUGE for a shared
TIDBitmap.

Bug introduced by commit 98e6e89040a0534ca26914c66cae9dd49ef62ad9.
Report by Rafia Sabih, fix by Dilip Kumar, adjusted by me.

Discussion: http://postgr.es/m/CAOGQiiPpSnkuKq+oUK_bvQFg2EPGFPN8RwgxTgBa6HU_kQa3EA@mail.gmail.com
src/backend/nodes/tidbitmap.c