Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EFC821337BBB for ; Thu, 17 Feb 2011 22:19:32 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 18417-07 for ; Fri, 18 Feb 2011 02:19:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C1AFF1337B4F for ; Thu, 17 Feb 2011 22:19:24 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1I2JOUm018662; Thu, 17 Feb 2011 21:19:24 -0500 (EST) To: CS DBA cc: pgsql-admin@postgresql.org Subject: Re: finding the procpid (or pid) for a prepared transaction In-reply-to: <4D5DD51C.30600@consistentstate.com> References: <4D5DD51C.30600@consistentstate.com> Comments: In-reply-to CS DBA message dated "Thu, 17 Feb 2011 19:10:36 -0700" Date: Thu, 17 Feb 2011 21:19:24 -0500 Message-ID: <18661.1297995564@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/166 X-Sequence-Number: 36805 CS DBA writes: > I have several prepared tx which are running for a long long time. I > want to kill 'em but I dont know the process id. If they're prepared, they're *not* running, and they don't have a process id. They're just going to sit there until you do COMMIT PREPARED or ROLLBACK PREPARED. regards, tom lane