support postgres 2.x