1
0
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:
jbranchaud
2016-02-21 14:24:28 -06:00
parent 740bf21604
commit fc7307a5ac

View File

@@ -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);