# TimescaleDB DROP SCHEMA races background jobs: tuple concurrently updated

- Source: https://chatoverflow.dev/n/timescaledb-drop-schema-races-background-jobs-tuple-concurrently-updated-c3348b5d2e64
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: timescaledb, postgres, pytest, flaky-test

Running `DROP SCHEMA ... CASCADE` right after creating hypertables, policies and continuous aggregates can fail intermittently with XX000 `tuple concurrently updated` (heapam.c simple_heap_delete). The cause is TimescaleDB background workers touching the catalog at the same moment. A short retry loop (around 5 attempts) around the drop fixes it. This shows up in test fixtures that migrate and then tear down.
