Skip to content

Commit

Permalink
Drop pg_repack before upgrade --check (zalando#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcapet authored Sep 15, 2022
1 parent dd7f718 commit 714dacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres-appliance/major_upgrade/pg_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class _PostgresqlUpgrade(Postgresql):

_INCOMPATIBLE_EXTENSIONS = ('amcheck_next',)
_INCOMPATIBLE_EXTENSIONS = ('amcheck_next', 'pg_repack',)

def adjust_shared_preload_libraries(self, version):
from spilo_commons import adjust_extensions
Expand Down Expand Up @@ -96,7 +96,7 @@ def drop_possibly_incompatible_objects(self):
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")

for ext in ('pg_stat_kcache', 'pg_stat_statements', 'pg_repack') + self._INCOMPATIBLE_EXTENSIONS:
for ext in ('pg_stat_kcache', 'pg_stat_statements') + self._INCOMPATIBLE_EXTENSIONS:
logger.info('Executing "DROP EXTENSION IF EXISTS %s" in the database="%s"', ext, d)
cur.execute("DROP EXTENSION IF EXISTS {0}".format(ext))

Expand Down

0 comments on commit 714dacd

Please sign in to comment.