fix some specs for postgresql