Skip to content

Commit 79f8b41

Browse files
committed
fix: add always mode
1 parent 372dc08 commit 79f8b41

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mamonsu/plugins/pgsql/plugin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def disable_and_exit_if_not_pgpro_ee(self, db=None):
4949

5050
def disable_and_exit_if_archive_mode_is_not_on(self, db=None):
5151
param = Pooler.get_sys_param('archive_mode', db=db)
52-
if param != 'on':
52+
if param != 'on' and param != 'always':
5353
self.disable()
5454
raise PluginDisableException("""Disable plugin and exit, because '{0}' \
55-
parameter is not 'ON'. Enable it "{1}" in PostgreSQL instance, \
56-
if needed and restart.""".format('archive_mode', 'alter system set archive_mode = on;'))
55+
parameter is neither 'on' nor 'always'. Enable it "{1}" or "{2}" in PostgreSQL instance, \
56+
if needed and restart.""".format('archive_mode', 'alter system set archive_mode = on;',
57+
'alter system set archive_mode = always;'))

0 commit comments

Comments
 (0)