출처:https://baekh-93.tistory.com/26
1.실제 서버 있음
2. local서버 만들기 : postgres계정으로 전환후 user,db,권한설정
3. 실제 서버 데이터 backup & localserver에 restore
4. 만약 데이터베이스 사용안할시 삭제 :
drop 시 에러메시지 발생 (데이터베이스 날릴때)
ERROR: must be owner of database <yourdatabase>
해결:
참고:https://dba.stackexchange.com/questions/185472/can-not-drop-a-postgresql-database-using-dropdb
dropdb: error: database removal failed: ERROR: database "database" is being accessed by other users
해결: pgadmin 종료후 dropdb메시지 실행