mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 00:58:02 +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
|
a `psql` session. You just have to figure out the `pid` of those
|
||||||
connections. In [List Connections To A
|
connections. In [List Connections To A
|
||||||
Database](list-connections-to-a-database.md), I explained how to
|
Database](list-connections-to-a-database.md), I explained how to
|
||||||
get at the `pid` values of connections. Using the `pid` value, you can
|
get at the `pid` values of connections. Using the `pid` value and
|
||||||
terminate a connection.
|
`pg_terminate_backend()`, you can terminate a connection.
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
> select pg_terminate_backend(12345);
|
> select pg_terminate_backend(12345);
|
||||||
|
|||||||
Reference in New Issue
Block a user