Re: Autovacuum cancellation - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: Autovacuum cancellation
Date
Msg-id 20071026011102.GO23566@alvh.no-ip.org
Whole thread Raw
In response to Re: Autovacuum cancellation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Gregory Stark <stark@enterprisedb.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.

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Autovacuum cancellation
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Crosstab Problems