Re: Autovacuum cancellation
Alvaro Herrera <alvherre@commandprompt.com>
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gregory Stark <stark@enterprisedb.com>, pgsql-patches@postgresql.org
Date: 2007-10-26T01:11:02Z
Lists: pgsql-hackers
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.