Skip to content

Commit

Permalink
Merge pull request #40 from cybertec-postgresql/fixUpgradeError
Browse files Browse the repository at this point in the history
remove revoke function call during upgrade
  • Loading branch information
Schmaetz authored Jul 5, 2024
2 parents 5726759 + 7267f9d commit 7da09c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions major_upgrade/pg_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def drop_possibly_incompatible_objects(self):
conn_kwargs['dbname'] = d
with get_connection_cursor(**conn_kwargs) as cur:

cmd = "REVOKE EXECUTE ON FUNCTION pg_catalog.pg_switch_{0}() FROM admin".format(self.wal_name)
logger.info('Executing "%s" in the database="%s"', cmd, d)
cur.execute(cmd)
# cmd = "REVOKE EXECUTE ON FUNCTION pg_catalog.pg_switch_{0}() FROM admin".format(self.wal_name)
# logger.info('Executing "%s" in the database="%s"', cmd, d)
# cur.execute(cmd)

logger.info('Executing "DROP FUNCTION metric_helpers.pg_stat_statements" in the database="%s"', d)
cur.execute("DROP FUNCTION IF EXISTS metric_helpers.pg_stat_statements(boolean) CASCADE")
Expand Down

0 comments on commit 7da09c0

Please sign in to comment.