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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers pgsql-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

Browse pgsql-committers by date

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

Browse pgsql-hackers by date

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

Browse pgsql-patches by date

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