DDC-2691: Test Suite: Drop other connections before dropping database PostgreSQL #3371

Open
opened 2026-01-22 14:18:49 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 19, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user flip101:

The test suite is trying to run the command

DROP DATABASE doctrine_tests

This fails, together with lots of tests when another user is connected (for example through the pgAdmin program). It would be nice if the test suite had an option to drop existing connections, which can be done with the following command:

SELECT pg*terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'doctrine*tests';
Originally created by @doctrinebot on GitHub (Sep 19, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user flip101: The test suite is trying to run the command ``` sql DROP DATABASE doctrine_tests ``` This fails, together with lots of tests when another user is connected (for example through the pgAdmin program). It would be nice if the test suite had an option to drop existing connections, which can be done with the following command: ``` sql SELECT pg*terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'doctrine*tests'; ```
admin added the Improvement label 2026-01-22 14:18:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3371