azgs / azlibrary_database

1 stars 1 forks source link

clean.js does not unlink large object #35

Closed NoisyFlowers closed 5 years ago

NoisyFlowers commented 5 years ago

When a collection is being updated, we call clean.js to delete all records from the db before creating them from scratch for the update. We are not currently unlinking the large object when we do this. This will cause an accumulation of orphaned large objects.

I think we should add a call to lo_unlink in clean.js.

NoisyFlowers commented 5 years ago

It turns out that this is not a problem. Unlinking the old large object is handled in archive.js, just before a new archive is created.