Re: pg_autovacuum taking locks on multiple tables at the same time

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hari Bhaskaran <hbhaskaran(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_autovacuum taking locks on multiple tables at the same time
Date: 2006-10-09 22:36:33
Message-ID: 9645.1160433393@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hari Bhaskaran <hbhaskaran(at)gmail(dot)com> writes:
> Why does pg_autovacuum need locks on more than one table at a time?

It doesn't --- unless maybe you are considering system catalogs, in
which case I'd wonder why you need exclusive lock on a catalog.

If you can prove the contrary, let's see a test case.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Turner 2006-10-10 00:10:56 Size of tuples
Previous Message pobox@verysmall.org 2006-10-09 21:34:39 Re: plpgsql handling a set of values