Skip to content
Snippets Groups Projects
Commit cf13acfb authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'apply_sql_planner_options' into 'develop'

join_collapse_limit and from_collapse_limit options applied at the end of...

See merge request !78
parents 7b66c40b a85c9781
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!78join_collapse_limit and from_collapse_limit options applied at the end of...
......@@ -1016,6 +1016,16 @@ def setup(db):
"""
db.query_no_return(sql)
sql = """
DO $$
BEGIN
EXECUTE 'ALTER DATABASE '||current_database()||' SET join_collapse_limit TO 16';
EXECUTE 'ALTER DATABASE '||current_database()||' SET from_collapse_limit TO 16';
END
$$;
"""
db.query_no_return(sql)
def reset_autovac(db):
"""Initializes/resets per-table autovacuum/autoanalyze params.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment