Re: First steps with 8.3 and autovacuum launcher
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndquadrant.com>
To: Gregory Stark <stark@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>, Guillaume Smet <guillaume.smet@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, "Matthew T. O'Connor" <matthew@zeut.net>, Heikki Linnakangas <heikki@enterprisedb.com>, Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2007-10-04T15:10:31Z
Lists: pgsql-hackers
On Thu, 2007-10-04 at 16:07 +0100, Gregory Stark wrote: > "Alvaro Herrera" <alvherre@commandprompt.com> writes: > > > Hmm, it looks like the race condition Heikki mentioned is the culprit. > > We need a way to stop future analyzes from starting. Back to the > > drawing board ... > > A crazy idea I just had -- what if you roll this into the deadlock check? So > after waiting on the lock for 1s it wakes up, finds that the holder it's > waiting on is an autovacuum process and cancels it instead of finding no > deadlock. +1 -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com