A Postgres problem, how I fixed it, and why this is what coding is all about.