Created
April 6, 2018 14:51
-
-
Save monsha/a703b010aa63e2046645becbed1991db to your computer and use it in GitHub Desktop.
Terminate a sql query from psql
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
# run in your psql console | |
# | |
# test=# SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE query='SELECT "posts".* FROM "posts"'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment