[postgres] Make SQL sanitization configurable