Fix broken module installation in Postgresql because of NULL constraint