Typed up what I learned in the process of setting up postgres contrib modules.