Re: ANALYZE: ERROR: tuple already updated by self - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: ANALYZE: ERROR: tuple already updated by self
Date
Msg-id CAH2-WzkdGXB0Z6qZkBZHeorjwGBk+ovDaeexrQp1b_RaJm9JcA@mail.gmail.com
Whole thread Raw
In response to Re: ANALYZE: ERROR: tuple already updated by self  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: ANALYZE: ERROR: tuple already updated by self
List pgsql-hackers
On Tue, Jun 18, 2019 at 4:49 PM Justin Pryzby <pryzby@telsasoft.com> wrote:
> Sure:
>
> (gdb) bt
> #0  errfinish (dummy=0) at elog.c:414
> #1  0x000000000085e834 in elog_finish (elevel=<value optimized out>, fmt=<value optimized out>) at elog.c:1376
> #2  0x00000000004b93bd in simple_heap_update (relation=0x7fee161700c8, otid=0x1fb7f44, tup=0x1fb7f40) at
heapam.c:4613
> #3  0x000000000051bdb7 in CatalogTupleUpdate (heapRel=0x7fee161700c8, otid=0x1fb7f44, tup=0x1fb7f40) at
indexing.c:234

It might be interesting to set a breakpoint within heap_update(),
which is called by simple_heap_update() --technically, this is where
the reported failure occurs. From there, you could send an image of
the page to the list by following the procedure described here:


https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD#Dumping_a_page_image_from_within_GDB

You'll have to hit "next" a few times, until heap_update()'s "page"
variable is initialized.
-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: ANALYZE: ERROR: tuple already updated by self
Next
From: Andres Freund
Date:
Subject: Re: ANALYZE: ERROR: tuple already updated by self