permify repair datastore
command helps prevent PostgreSQL XID wraparound issues by safely advancing the transaction ID counter. This is essential after database migrations or when dealing with XID-related problems.
Flag | Description | Example |
---|---|---|
--database-uri | Database connection URI | postgres://user:pass@localhost:5432/permify |
Flag | Default | Description |
---|---|---|
--database-engine | postgres | Database engine (only postgres supported) |
--batch-size | 1000 | Batch size for XID advancement |
--dry-run | false | Perform a dry run without making changes |
--verbose | true | Enable verbose logging |
--retries | 3 | Maximum number of retries |
pg_current_xact_id()
pg_current_xact_id()
and transaction operations--dry-run
first in production--batch-size
for your environment