Skip site navigation (1) Skip section navigation (2)

Re: Autovacuum cancellation

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Autovacuum cancellation
Date: 2007-10-25 22:28:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackerspgsql-patches
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> 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.

Can autovacuum actually get into a hard deadlock? Does it take more than one
lock that can block others at the same time?

I think there's a window where the process waiting directly on autovacuum
could have already fired its deadlock check before it was waiting directly on
autovacuum. But the only way I can see it happening is if another process is
cancelled before its deadlock check fires and the signals are processed out of
order. I'm not sure that's a case we really need to worry about.

  Gregory Stark

In response to


pgsql-hackers by date

Next:From: Gregory StarkDate: 2007-10-25 22:37:33
Subject: Re: 8.3beta1 testing on Solaris
Previous:From: Stephen FrostDate: 2007-10-25 22:27:58
Subject: Re: 8.3 GSS Issues

pgsql-committers by date

Next:From: Tom LaneDate: 2007-10-26 00:38:42
Subject: Re: Autovacuum cancellation
Previous:From: Tom LaneDate: 2007-10-25 21:35:46
Subject: Re: Autovacuum cancellation

pgsql-patches by date

Next:From: Joe ConwayDate: 2007-10-25 22:36:24
Subject: Re: [GENERAL] Crosstab Problems
Previous:From: Tom LaneDate: 2007-10-25 21:35:46
Subject: Re: Autovacuum cancellation

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group