mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add more detail to the latest til
This commit is contained in:
@@ -13,8 +13,8 @@ If you don't know where these connections are, you can terminate them within
|
||||
a `psql` session. You just have to figure out the `pid` of those
|
||||
connections. In [List Connections To A
|
||||
Database](list-connections-to-a-database.md), I explained how to
|
||||
get at the `pid` values of connections. Using the `pid` value, you can
|
||||
terminate a connection.
|
||||
get at the `pid` values of connections. Using the `pid` value and
|
||||
`pg_terminate_backend()`, you can terminate a connection.
|
||||
|
||||
```sql
|
||||
> select pg_terminate_backend(12345);
|
||||
|
||||
Reference in New Issue
Block a user