Re: vacuumlo can delete large objects referenced only by FORCE RLS-hidden rows

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: vacuumlo can delete large objects referenced only by FORCE RLS-hidden rows
Date: 2026-11-25 09:45:43
Message-ID: awWPVOLrRmvWlLOh@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2026-Nov-23, wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn wrote:

> Relevant source location: contrib/vacuumlo/vacuumlo.c removes
> references found by ordinary SELECT queries and later calls
> lo_unlink() for the remaining candidate OIDs. Source at the tested
> commit:
> https://github.com/postgres/postgres/blob/5c839a2a08b9b87a349be97371fac6c5a2873b10/contrib/vacuumlo/vacuumlo.c#L241-L333

Are you in a position to propose a fix for this problem and the other
problems you reported?

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Zsolt Parragi 2026-11-25 11:32:10 Re: BUG #19897: Recovery fails after "LOG: consistent recovery state reached"
Previous Message Álvaro Herrera 2026-11-25 09:43:15 Re: BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off`