Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfacespgsql-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

pgsql-hackers by date

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

pgsql-odbc by date

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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group