Created
September 26, 2023 14:32
-
-
Save rjyala-godaddy/36beb229564860722f485cae819b84f5 to your computer and use it in GitHub Desktop.
Kafka Connect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT slot_name, | |
| pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn)) as replicationSlotLag, | |
| pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn)) as confirmedLag, | |
| active | |
| FROM pg_replication_slots | |
| getting the lag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment