PostgreSQL is a fabulous, industrial strength database, but it has some somewhat unexpected behaviours. This repository aims to capture and explain some of them, along with a quick demonstration of some nifty features. (The presentation is in Haskell but most of these are not Haskell-specific problems.)