pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jasiek@klaster.net
To: Mark Mitchell <mark@lapcrew.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Cancelling Queries
Date: Fri, 7 Mar 2003 06:27:05 +0100
Message-ID: <20030307052705.GA5440@serwer> (raw)
In-Reply-To: <1046993130.21247.3.camel@sql.icnfull.com>
References: <1046993130.21247.3.camel@sql.icnfull.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <20030307052705.GA5440@serwer>
Permalink:  ../20030307052705.GA5440@serwer/
Also on:    postgresql.org/message-id/20030307052705.GA5440@serwer

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, mark@lapcrew.com
  Subject: Re: Cancelling Queries
  In-Reply-To: <20030307052705.GA5440@serwer>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox