how to kill a Postgres connection on the list of select * from pg_stat_activity?

From: Jessica Richard <rjessil(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: how to kill a Postgres connection on the list of select * from pg_stat_activity?
Date: 2007-08-20 20:40:35
Message-ID: 518395.14065.qm@web56414.mail.re3.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2007-08-20 21:21:49 Re: how to kill a Postgres connection on the list of select * from pg_stat_activity?
Previous Message Jessica Richard 2007-08-20 20:03:14 server closed the connection unexpectedly