Improved reindex and removed the postgres extension hacks