Skip to content

Commit

Permalink
Update troubleshooting.mdx (#11239)
Browse files Browse the repository at this point in the history
Add `DAY` in the `INTERVAL` keyword used to manually purge the nodestore_node table to prevent accidentally purging (almost) the entire table.
  • Loading branch information
waays-tl authored Dec 27, 2024
1 parent ab1b6cf commit 44d21cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion develop-docs/self-hosted/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ docker compose run --rm -T postgres bash -c "apt update && apt install -y --no-i

If the script above still does not clear up enough disk space, you can try the following in Postgres. This will lead to data loss in event details. _SENTRY_RETENTION_DAYS_ will need to be filled in manually.
```sql
DELETE FROM public.nodestore_node WHERE "timestamp" < NOW() - INTERVAL '[SENTRY_RETENTION_DAYS]';
DELETE FROM public.nodestore_node WHERE "timestamp" < NOW() - INTERVAL '[SENTRY_RETENTION_DAYS] DAY';
VACUUM FULL public.nodestore_node;
```

Expand Down

0 comments on commit 44d21cd

Please sign in to comment.