Skip to content

Commit 7da09c0

Browse files
authored
Merge pull request #40 from cybertec-postgresql/fixUpgradeError
remove revoke function call during upgrade
2 parents 5726759 + 7267f9d commit 7da09c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

major_upgrade/pg_upgrade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def drop_possibly_incompatible_objects(self):
8888
conn_kwargs['dbname'] = d
8989
with get_connection_cursor(**conn_kwargs) as cur:
9090

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

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

0 commit comments

Comments
 (0)