Re: ANALYZE: ERROR: tuple already updated by self

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: ANALYZE: ERROR: tuple already updated by self
Дата
Msg-id 20190619003834.GA11006@telsasoft.com
обсуждение исходный текст
Ответ на Re: ANALYZE: ERROR: tuple already updated by self  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: ANALYZE: ERROR: tuple already updated by self  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Tue, Jun 18, 2019 at 06:48:58PM -0500, Justin Pryzby wrote:
> On Tue, Jun 18, 2019 at 06:12:33PM -0500, Justin Pryzby wrote:
> > A customers DB crashed due to OOM.  While investigating the issue in our
> > report, I created MV stats, which causes this error:
> > 
> > ts=# CREATE STATISTICS sectors_stats (dependencies) ON site_id,sect_id FROM sectors;
> > CREATE STATISTICS
> > ts=# ANALYZE sectors;
> > ERROR:  XX000: tuple already updated by self
> > LOCATION:  simple_heap_update, heapam.c:4613
> 
> > I'm guessing the issue is with pg_statistic_ext, which I haven't touched.
> > 
> > Next step seems to be to truncate pg_statistic{,ext} and re-analyze the DB.
> 
> Confirmed the issue is there.
> 
> ts=# analyze sectors;
> ERROR:  tuple already updated by self
> ts=# begin; delete from pg_statistic_ext; analyze sectors;
> BEGIN
> DELETE 87
> ANALYZE

Why this works seems to me to be unexplained..

Justin



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: ANALYZE: ERROR: tuple already updated by self
Следующее
От: Andres Freund
Дата:
Сообщение: Re: ANALYZE: ERROR: tuple already updated by self