Re: Avoid logging dropped TOAST values with REPLICA IDENTITY FULL

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Rui Zhao <zhaorui126(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Avoid logging dropped TOAST values with REPLICA IDENTITY FULL
Date: 2026-12-05 10:31:39
Message-ID: axPn0ongogi-fg7B@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2026-Dec-05, Rui Zhao wrote:

> I recently ran into a case where deleting old rows by date range
> filled the disk with WAL. The table used REPLICA IDENTITY FULL, and a
> large TOASTed column had just been dropped. What surprised me was that
> the DELETE still wrote that column's value to WAL for each row it
> removed.

Hmm, I wonder in what cases do we need to log values in dropped columns.
Shouldn't we do it unconditionally?

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-12-05 13:24:38 Re: Convert ALL SubLinks to ANY SubLinks
Previous Message Zhijie Hou 2026-12-05 10:19:06 Re: DROP SUBSCRIPTION deadlock with ALTER SUBSCRIPTION OWNER TO