From 7267f9d669bf4f96956d9ac004eb2a7e665a4224 Mon Sep 17 00:00:00 2001 From: matthias Date: Fri, 5 Jul 2024 17:35:18 +0200 Subject: [PATCH] remove revoke function call during upgrade --- major_upgrade/pg_upgrade.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/major_upgrade/pg_upgrade.py b/major_upgrade/pg_upgrade.py index de37099..57010a1 100644 --- a/major_upgrade/pg_upgrade.py +++ b/major_upgrade/pg_upgrade.py @@ -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")