Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configuration/source-db/postgres-maintenance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ select slot_name, pg_drop_replication_slot(slot_name) from pg_replication_slots

Postgres prevents active slots from being dropped. If an active slot is somehow dropped while a PowerSync instance is disconnected, PowerSync will automatically recreate the slot when it reconnects and restart replication.

### Recovering from an invalidated slot
### Recovering from an Invalidated Slot

A replication slot becomes invalidated when its `wal_status` is `lost`. This happens when the WAL data needed by the slot has been removed, typically because the replication lag exceeded `max_slot_wal_keep_size`.

Expand Down
4 changes: 2 additions & 2 deletions maintenance-ops/self-hosting/diagnostics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ curl -X POST http://localhost:8080/api/admin/v1/diagnostics \
-H "Authorization: Bearer YOUR_API_TOKEN"
```

### Response structure
### Response Structure

The response `data` object contains:

Expand All @@ -60,7 +60,7 @@ Each connection in `active_sync_rules.connections[]` includes:
| `safe_wal_size` | Remaining WAL budget in bytes before the slot risks invalidation. |
| `max_slot_wal_keep_size` | The configured `max_slot_wal_keep_size` value on the source Postgres database. |

### Errors and warnings
### Errors and Warnings

Warnings and errors appear in the `errors[]` array at the sync rules level (`active_sync_rules.errors[]` or `deploying_sync_rules.errors[]`). This includes:

Expand Down