13 lines
1.3 KiB
Markdown
13 lines
1.3 KiB
Markdown
# db-replication-slots
|
|
|
|
This command shows information about [logical replication slots](https://www.postgresql.org/docs/current/logical-replication.html) that are setup on the database. It shows if the slot is active, the state of the WAL sender process ('startup', 'catchup', 'streaming', 'backup', 'stopping') the replication client address and the replication lag in GB.
|
|
|
|
This command is useful to check that the amount of replication lag is as low as possible, replication lag can occur due to network latency issues, slow disk I/O, long running transactions or lack of ability for the subscriber to consume WAL fast enough.
|
|
|
|
|
|
```
|
|
NAME │ ACTIVE │ STATE │ REPLICATION CLIENT ADDRESS │ REPLICATION LAG GB
|
|
─────────────────────────────────────────────┼────────┼─────────┼────────────────────────────┼─────────────────────
|
|
supabase_realtime_replication_slot │ t │ N/A │ N/A │ 0
|
|
datastream │ t │ catchup │ 24.201.24.106 │ 45
|
|
``` |