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

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

join_collapse_limit and from_collapse_limit options applied at the end of database creation to have set database specific values.
parent 7b66c40b
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): ...@@ -1016,6 +1016,16 @@ def setup(db):
""" """
db.query_no_return(sql) 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): def reset_autovac(db):
"""Initializes/resets per-table autovacuum/autoanalyze params. """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