workaround for vacuum not working inside transaction