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

Re: Autovacuum cancellation

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Autovacuum cancellation
Date: 2007-10-26 01:11:02
Message-ID: 20071026011102.GO23566@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackerspgsql-patches
Tom Lane wrote:
> Gregory Stark <stark(at)enterprisedb(dot)com> writes:

> > 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.
> 
> I think you don't understand what that code is doing.  If there's an
> autovac anywhere in the dependency graph, it'll find it.

Thanks for making that explicit, I was trying to build a test case where
it would lock :-)

(If we had concurrent psql we could even have it in the regression tests
...)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

pgsql-hackers by date

Next:From: Josh BerkusDate: 2007-10-26 02:56:56
Subject: Re: [HACKERS] 8.3beta1 testing on Solaris
Previous:From: Tom LaneDate: 2007-10-26 00:51:07
Subject: Re: [HACKERS] 8.3beta1 testing on Solaris

pgsql-committers by date

Next:From: Bruce MomjianDate: 2007-10-26 01:11:10
Subject: pgsql: Add plpgsql doc example of RETURN NEXT.
Previous:From: Tom LaneDate: 2007-10-26 00:38:42
Subject: Re: Autovacuum cancellation

pgsql-patches by date

Next:From: Tom LaneDate: 2007-10-26 01:43:48
Subject: Re: [GENERAL] Crosstab Problems
Previous:From: Tom LaneDate: 2007-10-26 00:38:42
Subject: Re: Autovacuum cancellation

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