pgsql: Fix possible "invalid memory alloc request size" failure in node

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix possible "invalid memory alloc request size" failure in node
Дата
Msg-id E1Zinqt-0003Vq-1I@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix possible "invalid memory alloc request size" failure in nodeHash.c.

Limit the size of the hashtable pointer array to not more than
MaxAllocSize.  We've seen reports of failures due to this in HEAD/9.5,
and it seems possible in older branches as well.  The change in
NTUP_PER_BUCKET in 9.5 may have made the problem more likely, but
surely it didn't introduce it.

Tomas Vondra, slightly modified by me

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/executor/nodeHash.c |    6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix possible "invalid memory alloc request size" failure in node
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Further twiddling of nodeHash.c hashtable sizing calculation.