Crash course in PostgreSQL, part 2