Task: Force Drop a PostgreSQL Database with Active Connections
Task: Force Drop a PostgreSQL Database with Active Connections: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that forcefully drops a PostgreSQL database even when there are active connections to it, and then creates a fresh database with the same name.
The task
Write a shell script that forcefully drops a PostgreSQL database even when there are active connections to it, and then creates a fresh database with the same name.
Part of PrimeIntellect/Terminal-Lego-15k.