Re: Autovacuum of pg_database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Ondřej Světlík <osvetlik(at)flexibee(dot)eu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Autovacuum of pg_database
Date: 2016-05-09 22:30:47
Message-ID: 4023.1462833047@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> Now that I actually tried this, it turned out that this problem is not
> so simple. vacuum.c already has logic to use conditional acquire of the
> table-level lock, and if not available it skips the table:

> LOG: skipping vacuum of "pg_shdepend" --- lock not available

> so an autovacuum worker is never "stuck" behind another worker trying to
> vacuum the table.

Hmm ... but then, how do we have the observed symptom of several workers
concurrently trying to process the same shared catalog? Seems like all
but one should fall out at this point.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2016-05-09 22:42:26 Re: Autovacuum of pg_database
Previous Message Alvaro Herrera 2016-05-09 21:30:30 Re: Autovacuum of pg_database