Managing Postgres query performance using \timing and EXPLAIN
postgreshacks.com