From: | Mark Mitchell <mark(at)lapcrew(dot)com> |
---|---|
To: | jasiek(at)klaster(dot)net, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Cancelling Queries |
Date: | 2003-03-06 14:31:56 |
Message-ID: | 3E675BDC.90703@lapcrew.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
These are select queries that may have been keyed incorrectly that I
need to cancel. So a transaction won't help in this case.
- Mark
jasiek(at)klaster(dot)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(at)postgresql(dot)org
>
>
>
--
Mark Mitchell
www.lapcrew.com
Registered Linux User # 299662
Mandrake 8.0 , RedHat 8.0
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-03-06 17:17:05 | Re: Arrays Or Loop |
Previous Message | Tomasz Myrta | 2003-03-06 12:00:52 | Re: sql question regarding count(*) |