User Tools

Site Tools


wiki:sentry_troubleshooting

Sentry troubleshooting

Postgres DB getting too big

One option is to truncate the nodestore_node table. Enter the DB:

psql -U postgres

Check the table size

postgres=# SELECT oid::regclass, reltoastrelid::regclass, pg_relation_size(reltoastrelid) AS toast_size FROM pg_class WHERE relkind = 'r' AND reltoastrelid <> 0 ORDER BY 3 DESC;

Run truncate:

postgres=# TRUNCATE nodestore_node ;

Tested on

  • sentry_version: 23.8.0 (docker)
  • PostgreSQL 14.5

See also

References

wiki/sentry_troubleshooting.txt · Last modified: 2024/08/26 11:21 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki