When you find out that PostgreSQL is not doing what it should, then it's time to investigate.
Investigating and reporting a bug
Getting ready
It is a good idea to make a full copy of your PostgreSQL installation before you start investigating. This will help you restart several times and be sure that you are actually investigating the results of the bug, and not chasing your own tail by looking at changes that were introduced by your last investigation and debugging attempt.
Do not forget to include your tablespaces in the full copy.
How to do it…
Try to make...