File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mamonsu/plugins/pgsql/driver Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Pool(object):
37
37
'select size, twice_used, dirty from mamonsu.buffer_cache()'
38
38
),
39
39
'wal_lag_lsn' : (
40
- "SELECT CONCAT(application_name, ' ', pid) as application_name, " \
40
+ "SELECT application_name, " \
41
41
" flush_lag, replay_lag, write_lag, " \
42
42
" pg_wal_lsn_diff(pg_current_wal_lsn(), replay_lsn) AS total_lag " \
43
43
" FROM pg_stat_replication;" ,
@@ -46,7 +46,7 @@ class Pool(object):
46
46
" FROM mamonsu.count_wal_lag_lsn()"
47
47
),
48
48
'xlog_lag_lsn' : (
49
- "SELECT CONCAT(application_name, ' ', pid) as application_name, " \
49
+ "SELECT application_name, " \
50
50
"pg_xlog_location_diff(pg_current_xlog_location(), replay_location) AS total_lag " \
51
51
"FROM pg_stat_replication;" ,
52
52
"SELECT application_name, total_lag " \
You can’t perform that action at this time.
0 commit comments