I do not know how to do that. I learned that I can send a SIGINT to a backend to cancel a query, but I dont know how to kill just one transaction. I have only "pg_getpid" and "pg_killpid" as interfaces to system functions "getpid" and "kill".
BTW, what information can I get about the current running backends on the internal structures? Or do I have to ask the OS? Thank you, -- Paulo Scardine ----- Original Message ----- From: "Robert Treat" <[EMAIL PROTECTED]> Subject: Re: [HACKERS] Killing the backend to cancel a long waiting query > > Yes, but you may need a way to ensure that the query canceled is the > same one that you really want to cancel. (imagine come connection > pooling and bad luck mixed together so that the long running query > actually ends but another query fires up between the time you lookup the > long running query and the time you issue the kill...). maybe > transaction id as well as pid for arguments? > ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org