PostgreSQL: Quickly Detecting Slow Queries