stackoverflow answer: Found this question when trying to do the same and ended up using git on the postgresql data directory. Discarding the changes is as easy as: git reset --hard
https://media.hachyderm.io/media_attachments/files/111/103/236/775/045/408/original/50749c3742a74033.png