Add more metrics to postgres 9.2 and above fix #683