Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKAlJ-0000Q3-TX for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jul 2015 19:42:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKAlJ-0006vP-0K for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jul 2015 19:42:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKAkg-0006Bi-BQ for pgsql-bugs@postgresql.org; Tue, 28 Jul 2015 19:41:27 +0000 Received: from nm12-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.172]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZKAkb-0008QD-JE for pgsql-bugs@postgresql.org; Tue, 28 Jul 2015 19:41:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1438112479; bh=Z4Nkt5Dx1Q3SxNLr2M+t4YjVAq9sz5+aPwacTR5vERU=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=PsUeHRYYCkPdwiEKYc/XC+ovDGrrSs9LupXz5heb2RZPs9IffgNes8d1WnGPL2voj+js09wkxZGz+VQy2mvv8nQi4s5xAKR5Dmjin3WuP0NhaJdiRegGU50nnYh5+jK+BvtzOjEpJfeCtEVEbwabjbPasafxgPF3YQmWHBU+HQkZqs+CvhW6EjRifx0jV3+2Bm1kn0B2KOZNY9FMZC8BeJ21esQA6i3c6+y/JQfqfyRHieslLmr1rZZc0BTRbX8jzbw5GmrpE0j7kJYEjgFO3KssimoZRmmtvFo4qsCPKEisGj0pUzJw8daTI0x3gCmQnACKfGCxuuogv/aIY3Zj3A== Received: from [98.138.101.130] by nm12.bullet.mail.ne1.yahoo.com with NNFMP; 28 Jul 2015 19:41:19 -0000 Received: from [98.138.87.1] by tm18.bullet.mail.ne1.yahoo.com with NNFMP; 28 Jul 2015 19:41:19 -0000 Received: from [127.0.0.1] by omp1001.mail.ne1.yahoo.com with NNFMP; 28 Jul 2015 19:41:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 148308.66893.bm@omp1001.mail.ne1.yahoo.com X-YMail-OSG: 20yuUYMVM1mSWMjJctuWX8TT0GcPyW2VT4WLnF4RyR4kdaUJF.PaO_E0_rki44Q lCWEyl8sZaLGhrGEN3BSf9pOe9zjF5cyupFqxPGBpO3d.PfxlwCK4qM7Zyl97gEgJkU7sK87uzhN GB6hqx9rgSHbjaQGXCfXSFAsDhijqu4KM99s0oadEaCuLQNcCEd_sl2PfvNqBX60jf3_ICPyayKg YsuJ8mvC3o7P.yHXt84LtPcf_8dlRmkY064xBRfZTwaoJkuuIbpXiASJxF2D9l6irh2gtpkerx.y e1KprurVkDQWhzKurfgFDuA2d2qucVnogHSSuM8GOpDDrnLolXmIjxQLgFyrMRIsR4fTPSvtoUfu Xn4tbGmFtWN6C.0B6krrRhEVUEbLUerX_7YZO_AVB.S_iUuLBbTx5MiKSW1kV9W7I511oFg.iILO b1um3hD.jbf5EqreFrVES7ZOE.MKXDCXyVAIFm1qRAtRmTjaDbnKkvldKMjaDPGutouZYSPuEjXh LqzxgTzL99je_jKKFgyfi.skg Received: by 98.138.105.253; Tue, 28 Jul 2015 19:41:18 +0000 Date: Tue, 28 Jul 2015 19:41:18 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: "niallfr@btinternet.com" , "pgsql-bugs@postgresql.org" Message-ID: <773925395.3977925.1438112478191.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <20150724180236.2737.27011@wrigleys.postgresql.org> References: <20150724180236.2737.27011@wrigleys.postgresql.org> Subject: Re: BUG #13518: CancelRequest lacks statement identifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 920 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "niallfr@btinternet.com" wrote: > If CancelRequest could include a statement name (or other means > of identifying a statement) and did nothing if that statement was > no longer running by the time the server processed it, the > usability of CancelRequest would be significantly enhanced. Would it be sufficient for your purposes to cancel a *transaction* rather than a *statement*? There is already a virtual transaction ID exposed in pg_locks, and it could probably be added to pg_stat_activity; we could probably create a pg_cancel_transaction() function that took a text representation of that and only canceled the transaction if it was running. There would need to be locking on a heavily contended lock or two to make that happen correctly, but presumably this would not ba a high-volume activity. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs