mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Fill CommonRdOptions with default values in extract_autovac_opts()
Reported-by: Thomas Munro Reported-by: Pavel Borisov Discussion: https://postgr.es/m/CA%2BhUKGLZzLR50RBvuqOO3MZ%3DF54ETz-rTp1PDX9uDGP_GqyYqA%40mail.gmail.com
This commit is contained in:
21
src/backend/utils/cache/relcache.c
vendored
21
src/backend/utils/cache/relcache.c
vendored
@@ -480,26 +480,7 @@ RelationParseRelOptions(Relation relation, HeapTuple tuple)
|
||||
{
|
||||
common = MemoryContextAlloc(CacheMemoryContext,
|
||||
sizeof(CommonRdOptions));
|
||||
common->autovacuum.enabled = true;
|
||||
common->autovacuum.vacuum_threshold = -1;
|
||||
common->autovacuum.vacuum_ins_threshold = -2;
|
||||
common->autovacuum.analyze_threshold = -1;
|
||||
common->autovacuum.vacuum_cost_limit = -1;
|
||||
common->autovacuum.freeze_min_age = -1;
|
||||
common->autovacuum.freeze_max_age = -1;
|
||||
common->autovacuum.freeze_table_age = -1;
|
||||
common->autovacuum.multixact_freeze_min_age = -1;
|
||||
common->autovacuum.multixact_freeze_max_age = -1;
|
||||
common->autovacuum.multixact_freeze_table_age = -1;
|
||||
common->autovacuum.log_min_duration = -1;
|
||||
common->autovacuum.vacuum_cost_delay = -1;
|
||||
common->autovacuum.vacuum_scale_factor = -1;
|
||||
common->autovacuum.vacuum_ins_scale_factor = -1;
|
||||
common->autovacuum.analyze_scale_factor = -1;
|
||||
common->parallel_workers = -1;
|
||||
common->user_catalog_table = false;
|
||||
common->vacuum_index_cleanup = STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO;
|
||||
common->vacuum_truncate = true;
|
||||
fill_default_common_reloptions(common);
|
||||
relation->rd_common_options = common;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user