Awesome tutorial and really cool idea! I am running into an issue though and thought maybe you would know how to help me out since you just did this. When I go to initialize my postgres db, it gives me this error:
fixing permissions on existing directory /root/pgdata ... initdb: could not change permissions of directory
"/root/pgdata": Operation not permitted
pg_ctl: database system initialization failed
I followed your instructions and did the chmod 777 /root/pgdata before initializing and it doesn't seem to be working. Does this make sense to you?