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):
3737 'select size, twice_used, dirty from mamonsu.buffer_cache()'
3838 ),
3939 'wal_lag_lsn' : (
40- "SELECT CONCAT(application_name, ' ', pid) as application_name, " \
40+ "SELECT application_name, " \
4141 " flush_lag, replay_lag, write_lag, " \
4242 " pg_wal_lsn_diff(pg_current_wal_lsn(), replay_lsn) AS total_lag " \
4343 " FROM pg_stat_replication;" ,
@@ -46,7 +46,7 @@ class Pool(object):
4646 " FROM mamonsu.count_wal_lag_lsn()"
4747 ),
4848 'xlog_lag_lsn' : (
49- "SELECT CONCAT(application_name, ' ', pid) as application_name, " \
49+ "SELECT application_name, " \
5050 "pg_xlog_location_diff(pg_current_xlog_location(), replay_location) AS total_lag " \
5151 "FROM pg_stat_replication;" ,
5252 "SELECT application_name, total_lag " \
You can’t perform that action at this time.
0 commit comments