PostgreSQL errors (80) — causes and fixes

80 PostgreSQL errors, each reproduced and fixed on a real database. Pick an error to see the actual output, the fix SQL and the result.