Re: Further clarification in documentation: No deletion of unreferenced large objects - Mailing list pgsql-docs

From Erik Wienhold
Subject Re: Further clarification in documentation: No deletion of unreferenced large objects
Date
Msg-id 411306699.367929.1686584869079@office.mailbox.org
Whole thread Raw
In response to Further clarification in documentation: No deletion of unreferenced large objects  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
> On 12/06/2023 15:48 CEST PG Doc comments form <noreply@postgresql.org> wrote:
>
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/15/datatype-binary.html
> Description:
>
> When deleting a row that references (contains) a large object, I think that
> most users expect the DBMS to take care of the, now unreferenced, BLOB. It's
> good to know that PostgreSQL handles this differently and that one must
> periodically use vacuumlo to avoid BLOB data piling up. At least, that's
> what I understood.
>
> I think a small paragraph in the documentation about this would help many
> people. I can help with writing, if needed.

bytea and large objects are two different ways of storing binary data.  vacuumlo
does not apply to bytea.  Extension lo also mentions the issue with orphan
objects already: https://www.postgresql.org/docs/15/lo.html

Some further info on bytea vs large objects:
https://www.cybertec-postgresql.com/en/binary-data-performance-in-postgresql/

--
Erik



pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Sequence Dependency
Next
From: "David G. Johnston"
Date:
Subject: Re: Further clarification in documentation: No deletion of unreferenced large objects