From 5edb24a8983e4a103e26153853d91141f818227c Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 8 Sep 2011 17:51:23 +0300 Subject: Buffering GiST index build algorithm. When building a GiST index that doesn't fit in cache, buffers are attached to some internal nodes in the index. This speeds up the build by avoiding random I/O that would otherwise be needed to traverse all the way down the tree to the find right leaf page for tuple. Alexander Korotkov --- src/backend/access/common/reloptions.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/backend/access/common/reloptions.c') diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c index 900b222865..240e178b3b 100644 --- a/src/backend/access/common/reloptions.c +++ b/src/backend/access/common/reloptions.c @@ -219,6 +219,17 @@ static relopt_real realRelOpts[] = static relopt_string stringRelOpts[] = { + { + { + "buffering", + "Enables buffering build for this GiST index", + RELOPT_KIND_GIST + }, + 4, + false, + gistValidateBufferingOption, + "auto" + }, /* list terminator */ {{NULL}} }; -- cgit v1.2.1