Re: Interrupting Cursors - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Interrupting Cursors
Date
Msg-id 20060522172727.GA10830@winnie.fuhr.org
Whole thread Raw
In response to Interrupting Cursors  (Steve Tucknott <steve@retsol.co.uk>)
Responses Re: Interrupting Cursors
List pgsql-novice
On Mon, May 22, 2006 at 06:04:46PM +0100, Steve Tucknott wrote:
> Are there any plans to introduce the ability to 'interrupt' cursors?
> We have some large queries that the user may have set off inadvertently,
> and it may be handy to have the ability to send an interrupt to the
> engine.

Would pg_cancel_backend() work?  Or could you set statement_timeout
to a reasonable value for certain users?

http://www.postgresql.org/docs/8.1/interactive/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE
http://www.postgresql.org/docs/8.1/interactive/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-STATEMENT

--
Michael Fuhr

pgsql-novice by date:

Previous
From: Steve Tucknott
Date:
Subject: Interrupting Cursors
Next
From: Steve Tucknott
Date:
Subject: Re: Interrupting Cursors