support postgres versioning