getaceres wrote:
Is this the normal behavior? I'd like to either, use the same record for the update or to generate a new one, but delete the old one, since it's no longer needed.
I'm not an expert, but AFAIK this is "normal". So if you delete a row, which has a BLOB with an OID, the corresponding TOAST structures and data won't be deleted. You have to take care of this yourself AFAIK. Search for lo_manage manage function and triggers on google to get more info on that. Currently I'm trying to define the triggers, but I experience problems during persist:
https://forum.hibernate.org/viewtopic.php?f=1&t=1005584