Re: Cancelling Queries

From: jasiek(at)klaster(dot)net
To: Mark Mitchell <mark(at)lapcrew(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Cancelling Queries
Date: 2003-03-07 05:27:05
Message-ID: 20030307052705.GA5440@serwer
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-03-07 06:11:03 Re: sql question regarding count(*)
Previous Message Rajesh Kumar Mallah 2003-03-07 05:23:06 Re: sql question regarding count(*)