#su - postgres $createdb SSO #psql -U postgres -d SSO < schema.sql #psql -U postgres -d SSO < VIEW_output.sql ※ FATAL: Peer authentication failed for user "postgres" 오류가 뜰 경우 #vi /etc/postgresql/9.5/main/pg_hba.conf local all postgres md5 ※ 스키마 단위로 마이그레이션 하기 위해서는 릴레이션을 위해 role을 만들어야 한다. #su -u postgres -i #createuser -l -d -P sso