Skip to content

Commit d5078fe

Browse files
author
alexander popov
committed
fix: add support windows
1 parent e6cc078 commit d5078fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mamonsu/plugins/pgsql/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import mamonsu.lib.platform as platform
2+
13
__all__ = ['bgwriter', 'connections', 'databases']
24
__all__ += ['health', 'instance', 'xlog']
35
__all__ += ['pg_stat_statement', 'pg_buffercache', 'pg_wait_sampling']
@@ -6,6 +8,8 @@
68
__all__ += ['archive_command']
79
__all__ += ['prepared_transaction']
810
__all__ += ['relations_size']
9-
__all__ += ['memory_leak_diagnostic']
11+
12+
if platform.LINUX:
13+
__all__ += ['memory_leak_diagnostic']
1014

1115
from . import *

0 commit comments

Comments
 (0)