pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manuel Rigger <rigger.manuel@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: DROP STATISTICS results in "ERROR: tuple concurrently updated"
Date: Tue, 23 Jul 2019 14:14:56 -0400
Message-ID: <8683.1563905696@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+u7OA6rxM-Wz6WaLGZ+mZvMBBd7DbcUUP_B4NJt1AJ65JjXtQ@mail.gmail.com>
References: <CA+u7OA6rxM-Wz6WaLGZ+mZvMBBd7DbcUUP_B4NJt1AJ65JjXtQ@mail.gmail.com>

Manuel Rigger <rigger.manuel@gmail.com> writes:
> When running multiple threads that operate on distinct databases, a
> "DROP STATISTICS" sometimes results in an error "ERROR: tuple
> concurrently updated". Would it be useful to make this error
> reproducible, or could this be expected, similar to the VACUUM
> deadlocks [1]?

I think it'd be worth running to ground, at least.  One could imagine that
the error is coming from one session trying to delete a statistics row
that some other session has updated-and-not-yet-committed; but then the
question is why there's not sufficient interlocking to avoid that.

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <8683.1563905696@sss.pgh.pa.us>
Permalink:  ../8683.1563905696@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8683.1563905696@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, rigger.manuel@gmail.com
  Subject: Re: DROP STATISTICS results in "ERROR: tuple concurrently updated"
  In-Reply-To: <8683.1563905696@sss.pgh.pa.us>
  References: <CA+u7OA6rxM-Wz6WaLGZ+mZvMBBd7DbcUUP_B4NJt1AJ65JjXtQ@mail.gmail.com> <8683.1563905696@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