Also fix the postgresql stuff
Better handling of the allocator