Re: logical decoding bug: segfault in ReorderBufferToastReplace()

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Jeremy Schneider <schnjere(at)amazon(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: logical decoding bug: segfault in ReorderBufferToastReplace()
Date: 2021-06-04 23:35:33
Message-ID: 202106042335.o64q6dui5hu2@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-committers 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)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2021-06-04 23:41:09 BUG #17049: what is the parameter wal_consistency_checking default value ?
Previous Message Jeremy Schneider 2021-06-04 23:07:02 Re: logical decoding bug: segfault in ReorderBufferToastReplace()

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-06-05 00:07:05 Re: logical decoding bug: segfault in ReorderBufferToastReplace()
Previous Message Jeremy Schneider 2021-06-04 23:07:02 Re: logical decoding bug: segfault in ReorderBufferToastReplace()

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-06-04 23:45:46 Re: alter table set TABLE ACCESS METHOD
Previous Message Tom Lane 2021-06-04 23:23:04 Re: join pushdown and issue with foreign update