This commit is contained in:
parent
baaa7b34c0
commit
9419799085
@ -99,7 +99,7 @@ FROM pg_stat_activity
|
||||
WHERE pid <> pg_backend_pid( ) AND datname = '<database_name>';
|
||||
```
|
||||
```sql
|
||||
-- убить процесс по pid
|
||||
-- убить подключение по pid
|
||||
SELECT pg_terminate_backend(pid)
|
||||
FROM pg_stat_activity
|
||||
WHERE pid = <process_id>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user