X-Original-To: pgsql-sql@postgresql.org Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by postgresql.org (Postfix) with ESMTP id 77686476375 for ; Fri, 7 Mar 2003 00:29:12 -0500 (EST) Received: by serwer.skawsoft.com.pl (Postfix, from userid 1000) id BDEBD2BDDA; Fri, 7 Mar 2003 06:27:05 +0100 (CET) Date: Fri, 7 Mar 2003 06:27:05 +0100 To: Mark Mitchell Cc: pgsql-sql@postgresql.org Subject: Re: Cancelling Queries Message-ID: <20030307052705.GA5440@serwer> References: <1046993130.21247.3.camel@sql.icnfull.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1046993130.21247.3.camel@sql.icnfull.com> User-Agent: Mutt/1.3.28i From: jasiek@klaster.net X-Archive-Number: 200303/174 X-Sequence-Number: 12214 On Thu, Mar 06, 2003 at 06:25:29PM -0500, Mark Mitchell wrote: > I have a Perl program that executes PostgreSQL queries through DBI. > Is there any way to cancel a query once its started. If I could at least > somehow get the PID of the child process postmaster starts I could kill > that. > > This may be a better question for the Perl programming list but I > thought I'd ask you guys too > > Mark Mitchell Use transactions. Just before query finish you can confirm query (commit) or cancel it (rollback) Regards, Tomasz Myrta