You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.py
+26-4Lines changed: 26 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
fromtimeimportsleep
5
5
fromslack_sdkimportWebClient
6
6
fromslack_sdk.errorsimportSlackApiError
7
+
importre
7
8
8
9
# PostgreSQL query to get replication slot size
9
10
REPLICATION_SLOT_QUERY="SELECT slot_name, pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn) AS replication_lag_bytes FROM pg_replication_slots;"
0 commit comments