Adds support for PostgreSQL <9.2 

Prior to PostgreSQL 9.2 pg_stat_activity.pid column was named pg_stat_activity.procpid.