$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 usersDETAIL:  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==';



  • No labels