From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow usage of huge maintenance_work_mem for GIN build.
Date: Wed, 02 Sep 2015 17:09:41 +0000
Message-ID: <E1ZXBXZ-0007hx-26@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Allow usage of huge maintenance_work_mem for GIN build.
Currently, in-memory posting list during GIN build process is limited 1GB
because of using repalloc. The patch replaces call of repalloc to repalloc_huge.
It increases limit of posting list from 180 millions
(1GB / sizeof(ItemPointerData)) to 4 billions limited by maxcount/count fields
in GinEntryAccumulator and subsequent calls. Check added.
Also, fix accounting of allocatedMemory during build to prevent integer
overflow with maintenance_work_mem > 4GB.
Robert Abraham <robert.abraham86@googlemail.com> with additions by me
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/30bb26b5e04cff911db960801e32e5f57045eb61
Modified Files
--------------
src/backend/access/gin/ginbulk.c | 10 +++++++++-
src/backend/access/gin/ginfast.c | 2 +-
src/backend/access/gin/gininsert.c | 2 +-
src/include/access/gin_private.h | 2 +-
4 files changed, 12 insertions(+), 4 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Allow usage of huge maintenance_work_mem for GIN build.
In-Reply-To: <E1ZXBXZ-0007hx-26@gemulon.postgresql.org>
References: <E1ZXBXZ-0007hx-26@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox