Skip to content

Commit f093cae

Browse files
committed
changed local etcd to v3 in patroni-template
1 parent 7267f9d commit f093cae

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

major_upgrade/pg_upgrade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
class _PostgresqlUpgrade(Postgresql):
1313

14-
_INCOMPATIBLE_EXTENSIONS = ('pgaudit',)
15-
14+
_INCOMPATIBLE_EXTENSIONS = ('pg_repack',)
15+
1616
def adjust_shared_preload_libraries(self, version):
1717
from spilo_commons import adjust_extensions
1818

@@ -93,7 +93,7 @@ def drop_possibly_incompatible_objects(self):
9393
# cur.execute(cmd)
9494

9595
logger.info('Executing "DROP FUNCTION metric_helpers.pg_stat_statements" in the database="%s"', d)
96-
cur.execute("DROP FUNCTION IF EXISTS metric_helpers.pg_stat_statements(boolean) CASCADE")
96+
function call dur cur.execute("DROP FUNCTION IF EXISTS metric_helpers.pg_stat_statements(boolean) CASCADE")
9797

9898
for ext in ('pg_stat_kcache', 'pg_stat_statements') + self._INCOMPATIBLE_EXTENSIONS:
9999
logger.info('Executing "DROP EXTENSION IF EXISTS %s" in the database="%s"', ext, d)

scripts/configure_spilo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,8 +1083,8 @@ def main():
10831083
config = deep_update(user_config_copy, config)
10841084

10851085
if provider == PROVIDER_LOCAL and not any(1 for key in config.keys() if key in PATRONI_DCS):
1086-
link_runit_service(placeholders, 'etcd')
1087-
config['etcd'] = {'host': '127.0.0.1:2379'}
1086+
link_runit_service(placeholders, 'etcd3')
1087+
config['etcd3'] = {'host': '127.0.0.1:2379'}
10881088

10891089
pgdata = config['postgresql']['data_dir']
10901090
version_file = os.path.join(pgdata, 'PG_VERSION')

0 commit comments

Comments
 (0)