Skip to content

Commit 44d21cd

Browse files
authored
Update troubleshooting.mdx (#11239)
Add `DAY` in the `INTERVAL` keyword used to manually purge the nodestore_node table to prevent accidentally purging (almost) the entire table.
1 parent ab1b6cf commit 44d21cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

develop-docs/self-hosted/troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ docker compose run --rm -T postgres bash -c "apt update && apt install -y --no-i
163163

164164
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.
165165
```sql
166-
DELETE FROM public.nodestore_node WHERE "timestamp" < NOW() - INTERVAL '[SENTRY_RETENTION_DAYS]';
166+
DELETE FROM public.nodestore_node WHERE "timestamp" < NOW() - INTERVAL '[SENTRY_RETENTION_DAYS] DAY';
167167
VACUUM FULL public.nodestore_node;
168168
```
169169

0 commit comments

Comments
 (0)