newtdb / db

Newt DB is a Python object-oriented database with JSONB-based access and search in PostgreSQL
http://www.newtdb.org
MIT License
144 stars 15 forks source link

Packing fix #7

Closed jimfulton closed 7 years ago

jimfulton commented 7 years ago

Fixed: Packing wasn't handled correctly. Objects removed during packing weren't removed from the newt table.

jimfulton commented 7 years ago

@jamadden any interest in reviewing this?

jamadden commented 7 years ago

I can try to take a look. Probably on Monday.

jamadden commented 7 years ago

I am interested, I hadn't even thought about how you would have hooked into packing.

jimfulton commented 7 years ago

Thanks. Yeah, me neither, unfortunately. The fix is pretty small. I simply added a delete trigger that deletes newt records when corresponding object_state records are deleted.