add workround for pg-9.0