#229051 follow-up by anigma32: Committing rest of fix for statistics under pgsql.
#229051 follow-up by anigma32: Committing rest of fix for statistics under pgsql.

edutrul/social-web,joshkoenig/golden-god-demo,rmcveigh/frontend-dev,OccupyWallStreet/streetnet,brainhell/drupalglass,brainhell/drupalglass,joshkoenig/golden-god-demo,lincgr/Prueba,OccupyWallStreet/streetnet,joshkoenig/golden-god-demo,joshkoenig/golden-god-demo,lincgr/Prueba,joshkoenig/golden-god-demo,rmcveigh/frontend-dev,edutrul/social-web,edutrul/social-web,edutrul/social-web,lincgr/Prueba,joshkoenig/golden-god-demo,OccupyWallStreet/streetnet,brainhell/drupalglass,brainhell/drupalglass,rmcveigh/frontend-dev,OccupyWallStreet/streetnet,joshkoenig/golden-god-demo,edutrul/social-web,brainhell/drupalglass,lincgr/Prueba