Issue #3119170 by tstoeckler, daffie: Optimize pgsql/Schema::findPrimaryKeyColumns() for Postgres >= 9.6