Re: Deadlock while doing VACUUM??

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Brown <kevin@sysexperts.com>
Cc: pgsql-hackers@postgresql.org
Date: 2003-03-27T14:29:10Z
Lists: pgsql-hackers
Kevin Brown <kevin@sysexperts.com> writes:
> When a heavy INSERT or UPDATE load on a table is occurring (lots of
> quick INSERTs or UPDATEs within a single transaction), a VACUUM
> ANALYZE (or just straight VACUUM) has a really good chance (10% or so)
> of causing either the INSERT/UPDATE or the VACUUM to fail with a
> "deadlock detected" error.

I was unable to replicate this in CVS tip, using "pgbench -c 10 -t 1000"
as the load generator.

			regards, tom lane