how to kill a Postgres connection on the list of select * from pg_stat_activity?
how to kill a Postgres connection on the list of select * from pg_stat_activity?
От:
Jessica Richard <rjessil@yahoo.com>
Дата:
Sometime a script talking to the Postgres has already been killed on the OS level, but the Postgres for this script is still listed out of select * from pg_stat_activity, saying a particular database is still being accessed by this script.
How to kill (release) this connection in this case?
Thanks!!!
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
How to kill (release) this connection in this case?
Thanks!!!
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
Re: how to kill a Postgres connection on the list of select * from pg_stat_activity?
От:
"Scott Marlowe" <scott.marlowe@gmail.com>
Дата:
On 8/20/07, Jessica Richard wrote: > Sometime a script talking to the Postgres has already been killed on the OS > level, but the Postgres for this script is still listed out of select * from > pg_stat_activity, saying a particular database is still being accessed by > this script. > > How to kill (release) this connection in this case? > see http://www.postgresql.org/docs/8.2/static/functions-admin.html sepcifically pg_cancel_backend(pid)