From 2d1e753000fc91725126c3be553803e2afe626a3 Mon Sep 17 00:00:00 2001 From: Sami Imseih Date: Tue, 2 Jun 2026 20:29:58 +0000 Subject: [PATCH 2/2] vacuumlo: Document data loss risk for unrecognized column types. Add a caution noting that large object references stored in columns of types not recognized by vacuumlo (such as text or bigint) will be treated as orphans and removed, resulting in data loss. Recommend the lo extension type to avoid this. Discussion: https://postgr.es/m/CALsgZNAM=AYK-9ZLR7Z0YLx6Lyx5aSrjjse3T+FmsJ=jTvfhDQ@mail.gmail.com --- doc/src/sgml/vacuumlo.sgml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/src/sgml/vacuumlo.sgml b/doc/src/sgml/vacuumlo.sgml index 94b5c5fae14..857d7fae74f 100644 --- a/doc/src/sgml/vacuumlo.sgml +++ b/doc/src/sgml/vacuumlo.sgml @@ -217,6 +217,19 @@ containing these types. Matching entries are removed from the temporary table. The remaining entries in the temporary table identify orphaned LOs. These are removed. + + + + Large object references stored in columns of other types, such as + text or bigint, are not recognized by + vacuumlo and will be treated as orphans, + resulting in data loss. Using the lo type + from the extension is recommended for columns that + hold large object references, as it allows + vacuumlo to find them and the + lo_manage trigger to manage them. + + -- 2.53.0