3B000
PostgreSQLERRORNotableSavepoint ExceptionHIGH confidence
savepoint exception
What this means
SQLSTATE 3B000 is the generic savepoint exception code raised when a savepoint operation fails in a way that does not map to a more specific code. See also 3B001 for the invalid savepoint name variant.
Why it happens
- 1Generic savepoint operation failure not covered by a more specific code
How to reproduce
Generic savepoint error.
expected output
ERROR: savepoint exception
Fix
Inspect the error message for the specific savepoint issue
WHEN When 3B000 appears.
Inspect the error message for the specific savepoint issue
SELECT * FROM pg_savepoints; -- not a standard view but illustrative
Why this works
Check the error detail and ensure savepoints are created, rolled back, and released in the correct order within the transaction.
Sources
Official documentation ↗
Class 3B — Savepoint Exception
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev