pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: jasiek@klaster.net
Cc: Mark Mitchell <mark@lapcrew.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Cancelling Queries
Date: Fri, 7 Mar 2003 13:26:38 -0500 (EST)
Message-ID: <200303071826.h27IQc205082@candle.pha.pa.us> (raw)
In-Reply-To: <20030307052705.GA5440@serwer>


Libpq has PQrequestCancel() which does cancels, but I don't see it in
DBD.  Maybe someone can make a patch.  ;-)

---------------------------------------------------------------------------

jasiek@klaster.net wrote:
> 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
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (5+ messages)  latest in thread

Message-ID: <200303071826.h27IQc205082@candle.pha.pa.us>
Permalink:  ../200303071826.h27IQc205082@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200303071826.h27IQc205082@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, jasiek@klaster.net, mark@lapcrew.com
  Subject: Re: Cancelling Queries
  In-Reply-To: <200303071826.h27IQc205082@candle.pha.pa.us>

* 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