pg_stat_statements is a great way how to track execution statistics of all executed SQL statements by your PostgreSQL server. Run these commands to enable them on OpenShift (replace APP_NAME with your application's name):
1. rhc set-env OPENSHIFT_POSTGRESQL_CONFIG="shared_preload_libraries = 'pg_stat_statements';pg_stat_statements.track = all" -a APP_NAME