diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-11-13 12:14:48 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-11-13 12:14:48 +0900 |
commit | c291503b1c8250c7ba6ca900b7ba2f85a64b1eb6 (patch) | |
tree | 8a9718c756942be40d89af6f28bf57a00bbc615b /src/backend/access/gin | |
parent | 677708032c4a4d37cdb2a4bd45726fc260308db7 (diff) | |
download | postgresql-c291503b1c8250c7ba6ca900b7ba2f85a64b1eb6.tar.gz postgresql-c291503b1c8250c7ba6ca900b7ba2f85a64b1eb6.zip |
Rename pending_list_cleanup_size to gin_pending_list_limit.
Since this parameter is only for GIN index, it's better to
add "gin" to the parameter name for easier understanding.
Diffstat (limited to 'src/backend/access/gin')
-rw-r--r-- | src/backend/access/gin/ginfast.c | 4 | ||||
-rw-r--r-- | src/backend/access/gin/ginutil.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/gin/ginfast.c b/src/backend/access/gin/ginfast.c index 96255104ac1..25746995b5e 100644 --- a/src/backend/access/gin/ginfast.c +++ b/src/backend/access/gin/ginfast.c @@ -26,7 +26,7 @@ #include "utils/rel.h" /* GUC parameter */ -int pending_list_cleanup_size = 0; +int gin_pending_list_limit = 0; #define GIN_PAGE_FREESIZE \ ( BLCKSZ - MAXALIGN(SizeOfPageHeaderData) - MAXALIGN(sizeof(GinPageOpaqueData)) ) @@ -426,7 +426,7 @@ ginHeapTupleFastInsert(GinState *ginstate, GinTupleCollector *collector) * call it when it can do all the work in a single collection cycle. In * non-vacuum mode, it shouldn't require maintenance_work_mem, so fire it * while pending list is still small enough to fit into - * pending_list_cleanup_size. + * gin_pending_list_limit. * * ginInsertCleanup() should not be called inside our CRIT_SECTION. */ diff --git a/src/backend/access/gin/ginutil.c b/src/backend/access/gin/ginutil.c index ff1dd7ee519..d0458cfd0cf 100644 --- a/src/backend/access/gin/ginutil.c +++ b/src/backend/access/gin/ginutil.c @@ -526,7 +526,7 @@ ginoptions(PG_FUNCTION_ARGS) int numoptions; static const relopt_parse_elt tab[] = { {"fastupdate", RELOPT_TYPE_BOOL, offsetof(GinOptions, useFastUpdate)}, - {"pending_list_cleanup_size", RELOPT_TYPE_INT, offsetof(GinOptions, + {"gin_pending_list_limit", RELOPT_TYPE_INT, offsetof(GinOptions, pendingListCleanupSize)} }; |