stop type from breaking on postgres