pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Manuel Rigger <rigger.manuel@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: VACUUM FULL results in deadlock
Date: Fri, 05 Jul 2019 16:57:59 -0400
Message-ID: <27094.1562360279@sss.pgh.pa.us> (raw)
In-Reply-To: <20190705161433.GA29023@alvherre.pgsql>
References: <20190705161433.GA29023@alvherre.pgsql>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> I agree that you should not be running 32 full vacuums at once, much
> less in a loop, but if you do, they shouldn't result in weird corruption
> such as the ones reported.

BTW, looking at the OIDs in the original problem report, they are for
pg_authid and pg_shdepend, both of which are shared catalogs.  It does not
seem terribly surprising to me that sets of operations that take out
exclusive locks on such catalogs are subject to deadlocks, especially not
when you consider that yet other sessions also have need to read those
catalogs.  So I'm more or less in agreement with Robert that the deadlock
errors aren't very interesting.  But I still concur with Alvaro that
those other error messages probably shouldn't be happening.

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <27094.1562360279@sss.pgh.pa.us>
Permalink:  ../27094.1562360279@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27094.1562360279@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, robertmhaas@gmail.com, rigger.manuel@gmail.com
  Subject: Re: VACUUM FULL results in deadlock
  In-Reply-To: <27094.1562360279@sss.pgh.pa.us>
  References: <20190705161433.GA29023@alvherre.pgsql> <27094.1562360279@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox