On a different topic: Is it normal that psycopg2 is not a dependency of the pg_partman package in PGDG ? I understand it's not essential but it's surprising none the less to get this message :
postgres@ulbdybbb01:~$ /usr/lib/postgresql/9.5/bin/reapply_indexes.py
Traceback (most recent call last): File "/usr/lib/postgresql/9.5/bin/reapply_indexes.py", line 3, in <module>import argparse, psycopg2, re, sys, time
ImportError: No module named psycopg2
**EDIT: Packages for ubuntu 14.04 pg 9.4 and 16.04 pg9.5