Update pg plugin

Postgres 9.2. not only changed the names of certain stat related fields but in the case of some tables, added extra fields. Change the way we support different queries for difference pg versions and add a couple of extra fields for pg >= 9.2