| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | Sami Imseih <samimseih(at)gmail(dot)com> |
| Cc: | Shawn McCoy <shawn(dot)the(dot)mccoy(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Vacuumlo improvements |
| Date: | 2026-05-15 20:29:39 |
| Message-ID: | ageCM0exH2mKeZBT@nathan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, May 15, 2026 at 02:36:22PM -0500, Sami Imseih wrote:
> I think there is value in expanding the vacuumlo search capability for
> LOs and OIDs. We can also detect LOs and OIDs stored in composite types,
> or OID[] and LO[]. All these are detectable from the catalog.
>
> The one complexity will be we will need vacuumlo to generate more complex
> expressions for deleting the data.
>
> DELETE FROM t WHERE lo IN (SELECT ("data")."lo_ref" FROM t_lo);
>
> But, this will be more comprehensive and can cover all potential ways
> an OID or LO can be used.
>
> What do you think?
It seems worth exploring.
> But with all this done, I am not sure how much this moves the needle. It may
> somewhat, but it's hard to tell how much. I know I have seen users store
> LO references in text or other types, so I think we still need the
> documentation enhancement to call out the "data loss" potential.
>
> I also think it will be good for the LO documentation [1] to nudge the users
> to think about using the LO extension, as is done with the vacuumlo [2]
> documentation.
Yeah, I think we'll have to do some combination of 1) improving vacuumlo,
2) improving the documentation to warn users about things vacuumlo doesn't
catch, and 3) improving the documentation to nudge users toward the lo
extension..
--
nathan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul A Jungwirth | 2026-05-15 21:04:21 | Re: FOR PORTION OF should reject GENERATED columns |
| Previous Message | Zsolt Parragi | 2026-05-15 20:21:01 | Re: Track skipped tables during autovacuum and autoanalyze |