Not sure if it will be enough to fix postgres. MySQL was ok even with the NULL as key.