All of last week I've been looking for the solution to a bug in one of my numerous websites.
The problem was that after registering, a user would get an error saying that the PostgreSQL connection was lost. I had never had that with Drupal and yet, it would be 100% consistent.
I tested the new code several times and had no problems with it, so I was really dismayed that all of a sudden it stopped working.
After quite some time, I finally decided that my new code was the culprit. Weird. It was. It does the same thing as one of the Core modules and yet it breaks the PostgreSQL ...