Re: logical decoding bug: segfault in ReorderBufferToastReplace() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: logical decoding bug: segfault in ReorderBufferToastReplace()
Date
Msg-id 202106042335.o64q6dui5hu2@alvherre.pgsql
Whole thread Raw
In response to Re: logical decoding bug: segfault in ReorderBufferToastReplace()  (Jeremy Schneider <schnjere@amazon.com>)
Responses Re: logical decoding bug: segfault in ReorderBufferToastReplace()
List pgsql-hackers
On 2021-Jun-04, Jeremy Schneider wrote:

> ERROR: XX000: could not open relation with OID 0
> LOCATION: ReorderBufferToastReplace, reorderbuffer.c:305

Hah.

It seems to me that this code should silently return if
rd_rel->reltoastrelid == 0; just like in the case of
txn->toast_hash == NULL.  It evidently means that no datum can be
toasted, and therefor no toast replacement is needed.

(As far as I recall, a table cannot go from having a toast table to not
having one.)

-- 
Álvaro Herrera       Valdivia, Chile
"¿Qué importan los años?  Lo que realmente importa es comprobar que
a fin de cuentas la mejor edad de la vida es estar vivo"  (Mafalda)



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: join pushdown and issue with foreign update
Next
From: Michael Paquier
Date:
Subject: Re: alter table set TABLE ACCESS METHOD