Re: Interrupting Cursors

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Steve Tucknott <steve(at)retsol(dot)co(dot)uk>
Cc: PostGreSQL <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Interrupting Cursors
Date: 2006-05-22 17:27:27
Message-ID: 20060522172727.GA10830@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Steve Tucknott 2006-05-22 17:47:20 Re: Interrupting Cursors
Previous Message Steve Tucknott 2006-05-22 17:04:46 Interrupting Cursors