diff options
author | Heikki Linnakangas | 2011-09-08 14:51:23 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2011-09-08 14:51:23 +0000 |
commit | 5edb24a8983e4a103e26153853d91141f818227c (patch) | |
tree | 9e3102de6e2149b0d3678b403c91955e97f3bdc8 /src/backend/access/common/reloptions.c | |
parent | 09b68c70af855a0a69cede14da70968ddd97ba05 (diff) |
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
Diffstat (limited to 'src/backend/access/common/reloptions.c')
-rw-r--r-- | src/backend/access/common/reloptions.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c index 900b222865e..240e178b3b4 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}} }; |