Merge pull request #23 from easeway/pg-9.0-workaround

add workround for pg-9.0