fix: added PG type check to the boostrap '-x' command
@@ -229,6 +229,7 @@ def run_deploy():
try:
bootstrap_extension_queries = fill_query_params(CreatePgBuffercacheFunctionsSQL)
Pooler.query(bootstrap_extension_queries)
+ if Pooler.is_pgpro() or Pooler.is_pgpro_ee():
bootstrap_extension_queries = fill_query_params(CreateWaitSamplingFunctionsSQL)
Pooler.query(bootstrap_extension_queries)
except Exception as e:
@@ -250,6 +251,7 @@ def run_deploy():
try:
bootstrap_grant_extension_queries = fill_grant_params(GrantsOnPgBuffercacheFunctionsSQL, args)
Pooler.query(bootstrap_grant_extension_queries)
+ if Pooler.is_pgpro() or Pooler.is_pgpro_ee():
bootstrap_grant_extension_queries = fill_grant_params(GrantsOnWaitSamplingFunctionsSQL, args)
Pooler.query(bootstrap_grant_extension_queries)
except Exception as e:
