Re: [HACKERS] Killing the backend to cancel a long waiting query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Paulo Scardine" <paulos(at)cimed(dot)ind(dot)br>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-odbc(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [HACKERS] Killing the backend to cancel a long waiting query
Date: 2003-09-18 19:08:48
Message-ID: 1469.1063912128@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-odbc

"Paulo Scardine" <paulos(at)cimed(dot)ind(dot)br> writes:
> So I hacked a small pggetpid and pgkillpid C functions, and now I can learn
> the backend's PID, start the query in a new thread, and kill the backend
> using another connection if I want.

I trust when you say "kill", you really mean "send SIGINT" ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Paulo Scardine 2003-09-18 19:19:48 Re: Killing the backend to cancel a long waiting query
Previous Message Oliver Elphick 2003-09-18 18:44:25 Re: ECPG interface: 7.4beta3 compile failure; CVS tip

Browse pgsql-interfaces by date

  From Date Subject
Next Message Paulo Scardine 2003-09-18 19:19:48 Re: Killing the backend to cancel a long waiting query
Previous Message Paulo Scardine 2003-09-18 18:04:32 Killing the backend to cancel a long waiting query

Browse pgsql-odbc by date

  From Date Subject
Next Message Paulo Scardine 2003-09-18 19:19:48 Re: Killing the backend to cancel a long waiting query
Previous Message Paulo Scardine 2003-09-18 18:04:32 Killing the backend to cancel a long waiting query