/
Can't delete PostgreSQL database
Can't delete PostgreSQL database
Problem
An error similar to the following occurs when trying to drop a PostgreSQL database.
An error has occurred:
ERROR: database "ForayAdams" is being accessed by other users DETAIL: There are 3 prepared transactions using the database.
Solution
Prepared transactions are in-process transactions. If you are dropping the database then you most likely don't care about them. To view all prepared transactions run:
SELECT * FROM pg_prepared_xacts;
To drop a specific transaction run:
ROLLBACK PREPARED '<THE GID>'; Ex: ROLLBACK PREPARED '131075_MS03ZjAwMDEzYTo0YTg5MjA5NzoxMDczMg==';
Related articles
, multiple selections available,
Related content
Filters, CC 2018 and Windows 7, and "Not the right kind of document"
Filters, CC 2018 and Windows 7, and "Not the right kind of document"
Read with this
Error Creating tables on PostgreSQL
Error Creating tables on PostgreSQL
More like this
Securing with HTTPS
Securing with HTTPS
Read with this
Error: The transaction has aborted.
Error: The transaction has aborted.
More like this
Reset lost PostgreSQL admin password
Reset lost PostgreSQL admin password
More like this
Installation of PostgreSQL Error
Installation of PostgreSQL Error
More like this
© 2023 Foray, LLC - All Rights Reserved