Re: Autovacuum cancellation - Mailing list pgsql-patches

From Simon Riggs
Subject Re: Autovacuum cancellation
Date
Msg-id 1193523312.4242.623.camel@ebony.site
Whole thread Raw
In response to Re: Autovacuum cancellation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Thu, 2007-10-25 at 17:35 -0400, Tom Lane wrote:
> There's some things still to be desired here: if an autovac process is
> involved in a hard deadlock, the patch doesn't favor zapping it over
> anybody else, nor consider cancelling the autovac as an alternative to
> rearranging queues for a soft deadlock.  But dealing with that will
> open cans of worms that I don't think we want to open for 8.3.

I did look at doing that but decided it would not be appropriate to do
that in all cases. i.e. there are hard deadlock cases where the autovac
can be the head of the lock queue and yet a deadlock still exists
between two other processes. The deadlock detector doesn't get called
twice for the same deadlock, so it wasn't possible to speculatively do
that and then re-catch it second time around.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


pgsql-patches by date:

Previous
From: Kenneth Marshall
Date:
Subject: updated hash functions for postgresql v1
Next
From: Simon Riggs
Date:
Subject: Re: Autovacuum cancellation