Fix configtest to use correct PostgreSQL connection function. (#1166228).