| From: | Sami Imseih <samimseih(at)gmail(dot)com> |
|---|---|
| To: | Nathan Bossart <nathandbossart(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-06-02 21:05:19 |
| Message-ID: | CAA5RZ0ufaaZmJP-JLHBz07QXhyfAGPY+MOsbk0-QQ3Mn8kH7Qw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
sorry for the late reply.
> > 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..
See the attached patches.
0001 - vacuumlo now can recursively search for OID or LO types inside
more complex
data types. It does so by having the query return the search
expression depending on the type
to the delete statement.
0002 - adds documentation mentioning the "data loss" and to nudge
users to use vacuumlo.
--
Sami Imseih
Amazon Web Services (AWS)
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-vacuumlo-Find-OID-references-inside-domains-composit.patch | application/octet-stream | 12.0 KB |
| v2-0002-vacuumlo-Document-data-loss-risk-for-unrecognized-co.patch | application/octet-stream | 1.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | David Rowley | 2026-06-02 20:59:17 | Re: Wrong unsafe-flag test in check_output_expressions() |