rails/rails — pull request #8417 by kennyj (2012-12-04 16:58:51+00:00)
Title: Fix #8414. Performance problem with postgresql adapter primary_key function.

According to @mccuskk, primary_key method in PostgreSQLAdapter execute slow query when we have many schemas. And if we use pg_constraint , we haven't to use pg_depend table to filter with table name.

Please see #8414.