DS-2070: compatible with older Postgres versions