Fixed configkey casing for PostgreSQL

Backport of fd5dec0 from master