Database 복사하기

떨어진 컴퓨터로 DB를 복사하는 방법은 pg_dump이지만, 같인 PC에서 복사할 때에는 명령어로 만들 수 있다.

CREATE DATABASE targetdb WITH TEMPLATE sourcedb;