diff options
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/misc/guc_tables.c | 16 | ||||
-rw-r--r-- | src/backend/utils/misc/postgresql.conf.sample | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index 60a40ed445a..ead80257192 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -3253,6 +3253,20 @@ struct config_int ConfigureNamesInt[] = }, { + {"io_max_combine_limit", + PGC_POSTMASTER, + RESOURCES_IO, + gettext_noop("Server-wide limit that clamps io_combine_limit."), + NULL, + GUC_UNIT_BLOCKS + }, + &io_max_combine_limit, + DEFAULT_IO_COMBINE_LIMIT, + 1, MAX_IO_COMBINE_LIMIT, + NULL, assign_io_max_combine_limit, NULL + }, + + { {"io_combine_limit", PGC_USERSET, RESOURCES_IO, @@ -3263,7 +3277,7 @@ struct config_int ConfigureNamesInt[] = &io_combine_limit, DEFAULT_IO_COMBINE_LIMIT, 1, MAX_IO_COMBINE_LIMIT, - NULL, NULL, NULL + NULL, assign_io_combine_limit, NULL }, { diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index beb05a89501..66bda60f4ca 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -200,6 +200,8 @@ #backend_flush_after = 0 # measured in pages, 0 disables #effective_io_concurrency = 16 # 1-1000; 0 disables prefetching #maintenance_io_concurrency = 16 # 1-1000; 0 disables prefetching +#io_max_combine_limit = 128kB # usually 1-32 blocks (depends on OS) + # (change requires restart) #io_combine_limit = 128kB # usually 1-32 blocks (depends on OS) #io_method = worker # worker, sync (change requires restart) |