Postgres cookbook.