Remove orphan blobs with vacuumlo

How to Remove Orphan Large Objects in PostgreSQL

Binary Large Objects (BLOBS) in PostgreSQL should be removed using the lo_unlink() function.

Simply deleting the related row without calling lo_unlink() will leave orphaned records behind.

In such cases, vacuumlo can come to the rescue as the “DEUS EX MACHINA” to clean up these orphaned large objects.

Here’s how you can manage large objects.

Here is a short demo in action.

Vacuumlo to remove oprhan blobs
Vacuumlo command usage

Hope it helps.


Discover More from Osman DİNÇ


Comments

Leave your comment