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>';
|
WHERE pid <> pg_backend_pid( ) AND datname = '<database_name>';
|
||||||
```
|
```
|
||||||
```sql
|
```sql
|
||||||
-- убить процесс по pid
|
-- убить подключение по pid
|
||||||
SELECT pg_terminate_backend(pid)
|
SELECT pg_terminate_backend(pid)
|
||||||
FROM pg_stat_activity
|
FROM pg_stat_activity
|
||||||
WHERE pid = <process_id>;
|
WHERE pid = <process_id>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user