Re: DROP STATISTICS results in "ERROR: tuple concurrently updated" - Mailing list pgsql-bugs

From Tom Lane
Subject Re: DROP STATISTICS results in "ERROR: tuple concurrently updated"
Date
Msg-id 8683.1563905696@sss.pgh.pa.us
Whole thread Raw
In response to DROP STATISTICS results in "ERROR: tuple concurrently updated"  (Manuel Rigger <rigger.manuel@gmail.com>)
Responses Re: DROP STATISTICS results in "ERROR: tuple concurrently updated"  (Andres Freund <andres@anarazel.de>)
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #15922: Simple select with multiple exists filters returns duplicates from a primary key field
Next
From: David Raymond
Date:
Subject: RE: BUG #15922: Simple select with multiple exists filters returnsduplicates from a primary key field