Created
April 14, 2023 11:54
-
-
Save CEZERT/008e3313d0dd67be6ba3a9b9ccb397ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='23-0241ACA_LOT_7' AND pid <> pg_backend_pid(); | |
create database "23-0242ACA_LOT_8" template "23-0241ACA_LOT_7"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment