DS-2070: compatible with older Postgres versions

https://jira.duraspace.org/browse/DS-2070