Allow postgresql slow query logging to be tunable

During load testing we found that enabling slow query logging was very useful. This change allows a graceful way to modify the slow query logging.